<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;
}

 

posted @ 2016-07-27 13:38  艹kiss灬不离  阅读(161)  评论(0编辑  收藏  举报