F.A.Qs Home ProblemSet Status Ranklist Contest LoginRegister
Notice:1:注册本OJ方式请见https://www.lydsy.com/JudgeOnline/wttl/thread.php?tid=5671 2:请不要在讨论区中发空白主题帖。
大视野在线测评-欢迎您
[ New Thread ]
Problem 3680 >> puts("nan nan")可过
RBQ @ 2018-04-03 20:24:27
[ Quote ] [ Edit ] [ Delete ] 1#
求修改SPJ。
这题puts("nan nan")和puts("-nan -nan")都过了......
其实SPJ改用cin或者判定答案是否在区间内就好了。
因为如果spj判定答案不在区间内的话,对nan的任何比较都返回0,这样就不会判定WA。
RBQ @ 2018-04-03 20:26:05
[ Quote ] [ Edit ] [ Delete ] 2#
当然想让BZOJ支持testlib短期内大概是不太可能的了......
cmd2001 @ 2018-04-04 07:26:57
[ Quote ] [ Edit ] [ Delete ] 3#
垃圾SPJ毁我青春,费我感情。
亏我还老老实实写模拟退火......
nzhtl1477 @ 2018-04-04 09:29:01
[ Quote ] [ Edit ] [ Delete ] 4#
模拟退×
KingSann @ 2018-05-08 10:05:53
[ Quote ] [ Edit ] [ Delete ] 5#
@cmd2001 自己回复自己还行
cmd2001 @ 2018-05-08 11:39:23
[ Quote ] [ Edit ] [ Delete ] 6#
@KingSann 你这个***就不要说话了QAQ。
shleodai @ 2018-07-25 20:21:09
[ Quote ] [ Edit ] [ Delete ] 7#
为什么puts("nan nan”)可以过啊?
KingSann @ 2018-07-28 22:07:02
[ Quote ] [ Edit ] [ Delete ] 8#
@shleodai 因为special judge用的scanf
rainman @ 2018-08-17 18:49:47
[ Quote ] [ Edit ] [ Delete ] 9#
话说这题如果不用模拟退火,应该怎么做。。。
[Top] [Previous Page] [Next Page]

HOME Back