欢迎加入西电微软俱乐部招新群 588166170,做出福利题,免技术部第一次面试且赠送“福利”海报或小礼品~~~~
Xidian Online Judge WebBoard
[ New Thread ]
Problem 1042 >> WA一下午了,大家记得输出的时候确定精度1E-9
13060410021 @ 2015-05-14 16:56:53
[ Quote ] [ Edit ] [ Delete ] 1#
WA一下午了,大家记得输出的时候确定精度1E-9WA一下午了,大家记得输出的时候确定精度1E-9WA一下午了,大家记得输出的时候确定精度1E-9WA一下午了,大家记得输出的时候确定精度1E-9
wikioi_bai @ 2015-05-14 17:19:06
[ Quote ] [ Edit ] [ Delete ] 2#
我也是加了1e-10才过的。。。
14010520040 @ 2015-05-14 20:23:40
[ Quote ] [ Edit ] [ Delete ] 3#
怎么加1e-10呢
13060410021 @ 2015-05-14 20:32:00
[ Quote ] [ Edit ] [ Delete ] 4#
@14010520040 printf("%lf",ans+(1e-9))
07126038 @ 2015-05-15 20:11:54
[ Quote ] [ Edit ] [ Delete ] 5#
同样WA了好几次,,谢谢提醒呀!
ValarMorghulis @ 2015-05-15 23:32:32
[ Quote ] [ Edit ] [ Delete ] 6#
同谢~~
112 @ 2015-08-14 15:43:48
[ Quote ] [ Edit ] [ Delete ] 7#
谢=。=
03131089 @ 2015-09-22 18:05:45
[ Quote ] [ Edit ] [ Delete ] 8#
多谢。。。。写了((ans*100)+0.5)/100都没过。。。这样却过了。
15040120162 @ 2017-04-21 22:25:31
[ Quote ] [ Edit ] [ Delete ] 9#
多谢,去看了科普,好神奇
Alice @ 2017-04-24 14:24:02
[ Quote ] [ Edit ] [ Delete ] 10#
好神奇,java用户表示System.out.printf("%.2f\n", a[0]);
一遍过,完全没有精度问题
[Top] [Previous Page] [Next Page]
Anything about the Problems, Please Contact Admin:admin
All Copyright Reserved 2010-2014 Xidian ACM Online Judge TEAM
GPL2.0 2003-2014 HUSTOJ Project TEAM