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

Re:提供组测试数据吧。。。

Posted by huxinjie at 2010-03-05 00:42:25 on Problem 1006
In Reply To:Re:提供组测试数据吧。。。 Posted by:huxinjie at 2010-03-04 22:37:04
原来判断是需要时间的额...........判断耗的时间还不少呢........
               while(1)
		{
			ff=0;
			if((sum-e)%ee)ff=1;
			if((sum-i)%ii)ff=1;
			if(ff==0&&sum>d)break;
			sum+=pp;
			if(sum-d>21252)break;
		}
这个是94ms
                while(1)
		{
			ff=0;
			if((sum-e)%ee)ff=1;
			if((sum-i)%ii)ff=1;
			if(ff==0&&sum>d)break;
			sum+=pp;

		}
这个是32ms

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