HDU 2800 Adding Edges

 

http://acm.hdu.edu.cn/showproblem.php?pid=2800

View Code
#include <iostream>  

using namespace std;  

int main()

{

    int n;

    while(scanf("%d",&n),n)

        printf("%d\n",(n+1)>>1);

    return 0;

}

 

你可能感兴趣的:(HDU)