看到这个代码,我想起了曾经我也是用数组模拟队列的
by hjqhs @ 2023-04-15 14:02:36
https://www.luogu.com.cn/paste/zme4jral
by hjqhs @ 2023-04-15 14:35:47
这是我的代码,我现在帮你调一下你的代码
by hjqhs @ 2023-04-15 14:36:28
随便给你几个测试数据
```
19
0100001000010001100
0000000010010000010
0000000101000001010
0100001000001100011
0010100000001000000
0000000110101101000
1000100100010000100
0000100100100000001
0100000100101100000
0010000110000000000
0000000000100010000
0001000000111000000
0011001010100001100
0001100001110000000
0000010111000001001
0000010010010001101
0100001010110001001
0000011110000000101
1010100000001100100
1 1 19 19
```
by hjqhs @ 2023-04-15 15:05:22
你的代码会输出39 正确结果应该是36
by hjqhs @ 2023-04-15 15:06:39
@[Raven_](/user/807181)
by hjqhs @ 2023-04-15 15:06:54
@[hjqhs](/user/724988)
感谢
by PoorGhost @ 2023-04-15 15:25:35