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

分享一下自己的经验

Posted by 2715599212 at 2019-08-06 15:47:20 on Problem 1001
注意数据:
000.00 0
000.00 1
输出为1和0
.10000 1
输出为
.1 不是0.1
多余的0一定要去掉包括类似1.110的小数末位的0也要去掉
结果为整数的话不要打小数点

最后本人将大佬给的测试数据全过了依然WA,原因是用99.999 25这样的数据时,打印结果比较长,有100多位吧。。。 我原来把结果储存在长度为100的字符串里,所以WA了,改成1000的长度就AC了。大家试试以后都把数组长度声明的大点,起码1000起步,

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