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 |
循环输出时, 多了一次,但结果对,仍然WA我是在最后判断重复的。 输出时, 多循环了一次,但由于里面有判断,是否重复。竟然还是WA,找了N个小时的答案。晕死了。 for(i=0;i<Count;i++) { if(temp_sum[i][0]) { for(j=1;j<=temp_sum[i][0];j++) { cout<<temp_sum[i][j]; if(j<temp_sum[i][0]) cout<<"+"; } cout<<endl; } } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator