| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
搞不懂哪里错了#include<stdio.h>
void main()
{int T,N,i,j,score[200],total=0,end[1000];
char nation[200][30];
scanf("%d %d",&T,&N);
end[0]=0;
for(j=0;T>0&&N>0;scanf("%d %d",&T,&N))
{
for(i=0;i<T;i++)
{scanf("%s %d",nation[i],&score[i]);
total=total+score[i];
}
end[j]=3*N-total;
j++;
total=0;
}printf("\ndraw:\n");
i=0;
do
printf("%d\n",end[i]);
while(++i<j);
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator