@[pengqiushi](/user/735164) 数组开太大了,建议改string
by sunrise1024 @ 2022-09-01 21:04:16
洛谷给你报的什么错,RE/MLE?
by _xltx2012_ @ 2022-09-01 21:05:51
建议你查一下输入,我试了一下有问题。
by wmsx1 @ 2022-09-01 21:09:53
像是这样,第一行空了。
```
na
no
ki
ki
ka
```
by wmsx1 @ 2022-09-01 21:12:51
建议 `string`
by wmsx1 @ 2022-09-01 21:16:53
@[xiaoluotongxue2012](/user/663199) 运行都不可以。
@[sunrise1024](/user/368884) string 我还不太会用,只能输入、输出。
by pengqiushi @ 2022-09-01 21:24:05
@[pengqiushi](/user/735164) 其实这道题find函数挺好用的
by _xltx2012_ @ 2022-09-01 21:27:46
@[pengqiushi](/user/735164) 您的c没赋初值
by baoziwu2 @ 2022-09-01 21:28:29
@[baoziwu2](/user/418670)
至少在主函数里的c是野值,直接炸掉数组
by baoziwu2 @ 2022-09-01 21:32:25
@[baoziwu2](/user/418670) 谢谢,程序不崩溃了,但还是不行.......
![](https://cdn.luogu.com.cn/upload/image_hosting/sq4b3r9x.png)
by pengqiushi @ 2022-09-01 21:53:05