Accepted in codeforces, CSES giving runtime error!

Revision en2, by sdKrhMn286, 2023-05-17 15:35:45

From codeforces EDU I solved THIS segment tree related problem and got accepted, I found THIS on CSES which is very similar to the problem I solved (on codeforces EDU). I submitted exactly same code for both of them (only thing I changed is removed first type query). On codeforces it is accepted and CSES gives runtime error.

ACCEPTED CODE on THIS PROBLEM on codeforces.

RUNTIME ERROR on THIS PROBLEM on CSES.

Can someone spot the issue and tell me what to do to resolve that? THANKS IN ADVANCE...

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English sdKrhMn286 2023-05-17 15:35:45 61
en1 English sdKrhMn286 2023-05-17 15:32:58 839 Initial revision (published)