F.A.Qs Home ProblemSet Status Ranklist Contest LoginRegister
大视野在线测评-欢迎您
[ New Thread ]
Problem 5017 >> 这题数据水的一逼啊不如加组数据?
Rose_max @ 2018-04-24 10:21:51
[ Quote ] [ Edit ] [ Delete ] 1#
wa了半天找了四个程序结果给我了4个不同答案??
加一组
15
1 5
10 1
15 5
16 7
23 2
24 9
31 4
32 1
37 1
38 5
39 2
40 9
45 7
50 9
53 2

输出
795
cmd2001 @ 2018-04-24 14:12:10
[ Quote ] [ Edit ] [ Delete ] 2#
的确是795,这题各种瞎搞胡做都能随便AC,认认真真写线段树优化建图反而被卡内存无限CE......
GXZlegend @ 2018-04-24 14:29:15
[ Quote ] [ Edit ] [ Delete ] 3#
事实证明线段树优化建图是可以过的,边数开到N*40即可
cmd2001 @ 2018-04-24 16:46:31
[ Quote ] [ Edit ] [ Delete ] 4#
@ GXZlegend
我也没说过不掉啊......我就是线段树过的,只不过数组开大了点然后loj上AC这里花式CE
Rose_max @ 2018-04-24 18:52:53
[ Quote ] [ Edit ] [ Delete ] 5#
然后我就随机化过了??
数据很神奇
cmd2001 @ 2018-04-25 16:32:36
[ Quote ] [ Edit ] [ Delete ] 6#
@Rose_max
如果是ACM赛制1000组数据专门卡你随机化,您怕不是就凉了(万一出题人有仇系列)。
GXZlegend @ 2018-04-25 18:10:30
[ Quote ] [ Edit ] [ Delete ] 7#
统计问题随机化过了...
suxxsfe @ 2020-02-22 16:39:09
[ Quote ] [ Edit ] [ Delete ] 8#
为什么我过了这个数据还是WA啊。。。
[Top] [Previous Page] [Next Page]

HOME Back