2009-10-02 23:01:33來源不明
班際籃球賽
由於一場比賽只能淘汰1個人
又因為要淘汰N-1個人,才會產生冠軍,所以必須比賽N-1場
/*************************************************************/
#include<stdlib.h>
#include<stdio.h>
main()
{
int n;
while(scanf("%d",&n)==1)
printf("%d\n",n-1);
return 0;
}