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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
  • 2022-01-22
  • 2021-11-07
  • 2022-12-23
猜你喜欢
  • 2021-12-23
  • 2022-12-23
  • 2021-08-18
  • 2022-02-14
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案