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 |
特别注意在求解过程中,一定要保证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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator