OJ-Problems-Source/HDOJ/2800_autoAC.cpp

11 lines
137 B
C++
Raw Normal View History

#include<iostream>
using namespace std;
int main()
{
int n;
while(scanf("%d",&n)!=EOF&&n)
{
printf("%d\n",(n+1)>>1);
}
}