Comments

How does my submission for Div2 b 75433741 get TLE, while another code 75420830, which I think has similar complexity to mine, get accepted?

They aren't ,75433835, and even if they were, I think since the conditions are joined by an 'and', they will be checked every time, regardless of their need....

Then shouldn't this 75420830 be O(n^2) too?

Why is my submission for Div2 b giving TLE verdict? My submission 75410566