Comments
0

check constraints P<=10^9 it will be TLE. use min(p,2*n) in loop .

0

Can anyone help me with testcase where it will be wrong -202103447 .The minimum is coming correct but maximum is getting wrong

Thanks got it.

Can anyone help me with a testcase where my code-201678387 for problem -C will fail?

can u suggest similar problems like-E people_plus_plus

But generally PyPy-2 is faster so its hard to imagine that that anything that got TLE here would get accepted in other version

Vladosiya why my solution-200898470 got TLE its same as mentioned in editorial .. the same it getting accepted in PyPy-3-200940055.During contest it got accepted in PyPy-2 but after testing i got tle and my rank reduced from 4k to 10k. It's not fair. Please look into it.

I was so close to get pupil but lost it.

BY the Way u must know PyPy-2 is faster than PyPy-3

Can anyone tell me why this code is wrong on pretest-4

Would help if anyone can give a testcase example.

UPD: I GOT IT. MADE A SILLY MISTAKE AND AFTER MODIFYING I DIDNT SUBMIT THOUGHT IT WOULD GET WRONG.

Use Binary search to find the square root and if its a true square then output result-1 else result.Check my solution

i got it.