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 tangbohu222 at 2011-03-25 19:53:14 on Problem 1065
	for(int i=0;i<n;i++)
		{
			if(sign[i]==0)
			{
				l=woode[i].l;
		                w=woode[i].w;
				sign[i]=1;
				ans++;
			}
			else continue;
			for(int j=i+1;j<n;j++)
			{
				if(sign[j]==1)continue;
				if(woode[j].l<l||woode[j].w<w)continue;
				sign[j]=1;
				l=woode[j].l;//这里大家是否漏写啊 我第二次写还是漏了
		                w=woode[j].w;
			}
			
		}

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