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

特别注意

Posted by GreatAccepted at 2010-02-17 15:05:13 on Problem 2645
在求解过程中,一定要保证x+y<=50000,因为在用根求解时,所获结果可能大于50000,这时是不满足条件的,即
for red=2..50000
    total=solve();
    only total<=50000 you can output the ans(cout<<x<<" "<<ans-red<<endl;)
    else repeat
当然,若p=0,有两种情况,应该不会出现,自己可以去测试,我没测试 

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