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> # include <string.h> char s[33]; int cheng[52]; int main() { int N,M; int chengji=0; int nn; scanf("%d",&N); nn=N; while(nn--) { gets(s); } scanf("%d",&M); while(M--) { int count=0; int cc=1; int mark; while(count<N-1) { scanf("%d",&mark); getchar(); gets(s); if(strcmp(s,"Li Ming")==0) chengji=mark;///////////////////////////// else { cheng[count]=mark; ++count; } } for(int p=0;p<N-1;p++) { if(cheng[p]>chengji) ++cc; } scanf("%d\n",cc); } return 0; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator