Important thing to say..

While solving a problem in ongoing competition I got a lot of tle’s when I was taking modulo at each step. But when I gave a check that if value is greater than mod then only apply modulo operation I got ac. I think time limit of the question should be set according best/worst asymptotic bound and constant factor should be avoided. Why it wasn’t so. These kind of things are very frustating… :frowning:

2 Likes