zoj 2830 Champion of the Swordsmanship

来源:互联网 发布:校园网网络工程设计书 编辑:程序博客网 时间:2024/06/07 23:36
/*这大概是我今生写的最短的能AC的代码了。。。注意同时每轮比赛的人数只能为3或者2人只有一组不是很多组同时比赛有公式很好推的。。。 */#include<stdio.h> int main(){int n;while(scanf("%d",&n)&&n) printf("%d\n",n>>1);}