因为数组在外面初始值为0,
而在main里面初始值是混乱的。。
by abs001 @ 2019-01-05 14:29:54
如果把数组定义在里面需要初始化
by abs001 @ 2019-01-05 14:30:26
楼上正解
by wxy_god @ 2019-01-05 14:30:49
@[abs001](/space/show?uid=98468) 所以主函数里面memset一下就对了是吗
by lch233 @ 2019-01-05 14:32:05
@[lch233](/space/show?uid=161418) 是的
by abs001 @ 2019-01-05 14:32:18
希望更丰富的展现?~~使用Markdown~~
by XY_cpp @ 2019-01-05 14:33:43
@[abs001](/space/show?uid=98468) 谢谢大佬!
by lch233 @ 2019-01-05 14:33:55
还有怎么代码贴出来会变得这么丑。。。
by lch233 @ 2019-01-05 14:34:39
@[lch233](/space/show?uid=161418) 希望更丰富的展现?使用Markdown
by abs001 @ 2019-01-05 14:35:24
[Markdown](https://www.luogu.org/wiki/show?name=%E5%B8%AE%E5%8A%A9%EF%BC%9Amarkdown)
by abs001 @ 2019-01-05 14:35:43