OpenJudgeAC,洛谷全部WA了?!

P1059 [NOIP2006 普及组] 明明的随机数

把数组开成全局试试?
by 蒟蒻365 @ 2019-02-15 21:23:58


@[yige_](/space/show?uid=175050) 您没有排序吧
by resftlmuttmotw @ 2019-02-15 21:24:14


看错了 尴尬
by resftlmuttmotw @ 2019-02-15 21:24:42


@[resftlmuttmotw](/space/show?uid=73992) 桶排啊QwQ
by t162 @ 2019-02-15 21:25:25


而且数组大小是1005,下标是从0到1004,你循环是到1005,肯定会出问题呀
by 蒟蒻365 @ 2019-02-15 21:25:42


@[resftlmuttmotw](/space/show?uid=73992) 不好意思没看到下一句话,,, 尴尬
by t162 @ 2019-02-15 21:26:11


数组越界访问,错是很正常的……
by 落叶流云 @ 2019-02-15 21:27:43


~~很明显的数组越界~~
by juruojjl_ @ 2019-02-15 21:29:35


蒟蒻膜拜绿名巨佬orzorz
by 蒟蒻365 @ 2019-02-15 21:38:01


看了一下,果然是数组越界……感谢各位神犇了
by yige_ @ 2019-02-15 21:58:39


|