Why I keep getting judgement fail???

Revision en1, by Misuki, 2021-10-09 13:44:20

Today I was solving pG in this problem list. When I submit my code it seems alright at the first few test case but turns out to be an judgement fail. Does someone know the reason behind it?

verdict

Here is my code:

code

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English Misuki 2021-10-10 17:17:09 80
en3 English Misuki 2021-10-09 13:48:44 0 (published)
en2 English Misuki 2021-10-09 13:47:54 25
en1 English Misuki 2021-10-09 13:44:20 5957 Initial revision (saved to drafts)