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

Let give you the answer

Posted by archerstarlee at 2008-12-27 11:32:11 on Problem 1650
In Reply To:WA与AC的区别就在枚举的是分母还是分子。 不懂为什么会这样。。。。 Posted by:sixshine at 2007-08-03 06:35:21
The follwing code is missing in your first wa program

if(k>1)
  k--;
if(ans>abs(a-(double)i/k))
{
  ans=abs(a-(double)i/k);
  N=i;
  D=k;
}

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