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

怪事,我的算法没错,就是通不过,老是Wrong Answer。改了我同学的主函数,就Accept 了。怪事。

Posted by canoe5626 at 2003-09-30 14:01:51 on Problem 1321
这是我同学的主函数:
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:
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