I had Time limit in this problem (https://mirror.codeforces.com/contest/1934/problem/C) yesterday, please explain why it was coming out (I'm not sure what's right in my code, but I want to know why Time limit so that there won't be such an error next time). Who will help me, I will be very grateful.
P.S — Please don't give me a minus sign.
My code — https://mirror.codeforces.com/contest/1934/submission/249166441