My solution this failed the system test case in the Educational Codeforces Round 85 [Rated for Div. 2] giving tle verdict. But when I submitted the same code this after the contest it was accepted. Please anyone can help me what could have happened wrong.
MikeMirzayanov sir can you please take a look into this matter.
And I apologize for my bad English.