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

循环输出时, 多了一次,但结果对,仍然WA

Posted by omycle at 2009-05-14 16:09:23 on Problem 1564
我是在最后判断重复的。
输出时, 多循环了一次,但由于里面有判断,是否重复。竟然还是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:
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