Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

搞不懂哪里错了

Posted by taishi at 2009-03-25 23:30:56 on Problem 3117
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator