<swustoj>?id=27 钻石
链接http://acm.swust.edu.cn/problem/0027/
多面体欧拉定理http://baike.baidu.com/view/1597961.htm
#include <stdio.h> int main() { int vertex,edge; while(~scanf("%d %d",&vertex,&edge)) { printf("%d\n",vertex-edge+2); } return 0; }
链接http://acm.swust.edu.cn/problem/0027/
多面体欧拉定理http://baike.baidu.com/view/1597961.htm
#include <stdio.h> int main() { int vertex,edge; while(~scanf("%d %d",&vertex,&edge)) { printf("%d\n",vertex-edge+2); } return 0; }