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 |
怪事,我的算法没错,就是通不过,老是Wrong Answer。改了我同学的主函数,就Accept 了。怪事。这是我同学的主函数: void main() { while(cin>>n>>k) { if(n!=-1) { result=0; set(); for(int lie=0;lie<n;lie++) work(lie,0); cout<<result<<endl; } } } 这是我的主函数: void main() { while(cin>>n>>k) { if(n==-1 || k==-1) break; if(n<=8 && n>0 && k<=n && k>0) { result=0; set(); for(int lie=0;lie<n;lie++) work(lie,0); cout<<result<<endl; } } } 这就是 Wrong Answer 为什么 ????????????????????????????????? Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator