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 |
结果正确,问什么提示'Output Limit Exceeded'?#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator