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

结果正确,问什么提示'Output Limit Exceeded'?

Posted by lzwyelang at 2007-09-24 14:45:26 on Problem 3372
#include<iostream.h>
void main()
{
	   int n;
	   cin>>n;	
	   while(1)
	   {
		while(n%2==0&&n!=0)
			n/=2;
		if(n==1)
		cout<<"YES"<<endl;
		else cout<<"NO"<<endl;
		cin>>n;
		
	   }	   	
}
'Output Limit Exceeded'
谁能告诉我为什么呢?

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