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

终于1001问题AC了

Posted by shudaowenling at 2013-04-14 23:14:48
花费了四个小时左右,思路都是清楚的。但读取数据有问题。 我是读取float值,乘以1e5,转化为int值,但我估计测试数据中可能大于99.999。 如果用11111.测试,发现float值精度不够,末尾有很大的误差。而且用111111测试,int范围不够溢出。 所以我改用读取string 就成功了。   --

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