My code is identical to Tourist's code for the problem Slay the Dragon, but mine is getting TLE on the 6th test case. Can someone help me figure out why this is happening?
Here is the link to my submission: link and here is the link to Tourist's submission: link
I am new to CF, or if there's a better way to ask my questions or if I am violating any rules please do let me know.
Full text and comments »
Codeforces Round 953 Div 2 Solution Discussion (with Jan)