Unusual Runtime Error in Codeforces Round 944(Div 4) in Problem G

Revision en2, by Fume, 2024-05-12 06:35:32

Can anyone help me indentifying why my code is giving runtime error for this following code in Problem G: (https://codeforces.com/contest/1971/submission/260600724)

Edit: Got the issue and got AC but could not understand the reason

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Fume 2024-05-12 06:35:32 70
en1 English Fume 2024-05-12 06:03:55 230 Initial revision (published)