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 |
是的,每行最后可能有若干个空格,需要gets() 去除,for(i=1;i<n;i++){ gets(sp); // 去除每行后的多个空格 scanf("%c%d",&ch,&k); u=ch-'A'; for(j=1;j<=k;j++){ getchar(); // 去除每个字符前一个空格 scanf("%c%d",&ch,&ct); Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator