Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Bug in program

Revision en1, by 4o2a, 2025-07-16 06:13:15

While trying to solve 2108D - Needle in a Numstack, I encountered a bug I could not understand. Here is the submission 329129022. Codeforces says it's an out of bound error on line 32, but I suspect that this is coming from errors that were accumulated earlier. Can someone help me identify the error? Thanks in advance.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English 4o2a 2025-07-16 06:13:15 334 Initial revision (published)