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 |
Let give you the answerIn 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator