Getting run time error on test 9. Need help debugging.

Revision en1, by apoorvwatsky, 2020-04-17 11:32:37

Codeforces Round #635 (Div. 2)

Problem: https://codeforces.com/contest/1337/problem/C

My submission : https://codeforces.com/contest/1337/submission/77015830

I keep getting this problem. I thought it could be due to recursion limit but it’s not. Tried a more simple approach as well but still run time error on the same test :

https://codeforces.com/contest/1337/submission/77047258

I’ve really got no clue since I don’t even know what kind of exception it might be throwing. This is so weird. I've been stuck with this for almost a day now and I want to get it off the ground so that this doesn't happen again in future problems.

Any leads from anyone? Especially python users. Any kind of help would be appreciated. :)

Tags #help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English apoorvwatsky 2020-04-17 11:32:37 835 Initial revision (published)