My first ever blog on CodeForces here. Firstly, a huge thanks to MikeMirzayanov and all the people behind this wonderful ecosystem for allowing me to improve my programming skills, which enable me to think differently.
Now, onto the travesty, here is problem 3E from the most recent div3(1027). Here is the problem statement: https://mirror.codeforces.com/contest/2114/problem/E
The question itself is rather simple, but consider the following two submissions:
https://mirror.codeforces.com/contest/2114/submission/322609464
https://mirror.codeforces.com/contest/2114/submission/321513639
You may notice that these two codes have the same code. However, curiously, the PyPy compiler gives TLE while the Python compiler gives AC. Considering that CodeForces almost always asks me to switch to PyPy when I try to submit in Python since it is faster, it made me wonder what made Python run faster than PyPy. (I used the latest compilers for both versions.)
Any insights into this would be extremely useful.
Additionally, any inputs to optimise my solution to problem D of the same contest are also welcomed.
PROBLEM: https://mirror.codeforces.com/contest/2114/problem/D
MY SOLUTION: https://mirror.codeforces.com/contest/2114/submission/321675571
PS: 1) Do tag me in case you figure anything out and you comment on this post.
PS: 2) Would be extremely grateful if you could upvote this(idc about contribution et. al. , but what I want is genuine issues like these to reach to those who can solve this so that we can grow together)







