int p = 0; for(int i = 1; i <= m; i++) { memset(vis, 0, sizeof vis); if(!match(i)) { p = i - 1; break; } }
当 p 的实际值为 m 时,这份代码会使 p = 0。
p
m