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 Tidus5 at 2009-04-27 22:59:36 on Problem 1207
我莫名掉了两个等号 呵呵 WA了两三次

		if(m<=n)
		{	
			for(i=m;i<=n;i++)
				{
				if(count(i)>=max)
					max=count(i);
				}
			cout<<m<<" "<<n<<" "<<max<<endl;
		}

		if(m>n)
		{	
			for(i=n;i<=m;i++)
			{
			if(count(i)>=max)
				max=count(i);
			}
			cout<<m<<" "<<n<<" "<<max<<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