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