Help Needed: Debugging Runtime Error in Codeforces Problem 1931E

Revision en2, by XoXoHarsh, 2025-01-14 10:55:10

I keep encountering a runtime error on test case 4 in my solution. I would greatly appreciate it if someone could help me identify the reason.

Problem Link: 1931E — Codeforces My Submission: 300919011

It might be a simple issue, but I’ve spent hours figuring it out without success.

Tags runtime error, c++, problem 1931e, help needed

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English XoXoHarsh 2025-01-14 12:19:01 11
en2 English XoXoHarsh 2025-01-14 10:55:10 59
en1 English XoXoHarsh 2025-01-14 10:54:25 441 Initial revision (published)