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

总结一下WA的经验,供后来者参考

Posted by 00948220 at 2010-12-12 01:05:48 on Problem 1328
首先由于开平方会出现非完全平方数的情况,故对于区间的两端值要设为double,不能认为一定是整数,为input所蒙蔽。
另外推荐sort,不推荐qsort,因为qsort里的那个比较函数是返回int型的,而对区间排序需要考虑精度问题。
由于上述两个问题,让我wa长达一个多小时,真是纠结啊!

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