yash_0402's blog

By yash_0402, history, 3 years ago, In English

After seeing this, almost everyone will submit the code in PyPy.

Now checkout this two solutions : 104868543 and 104820924

Both of them has same code and it was the solution of A problem of div2. The time complexity of the code was O(n). PyPy code gave TLE and Python code gave AC resulted in penalty of 50 points.

It's not over yet. Same thing happened in Problem C of same contest, but this time Python code gave TLE and PyPy code worked fine. Python code : 104867840 and PyPy code : 104868496

Now how one will decide to submit solution in PyPy or Python. Or every time we have to suffer a penalty of 50 points by trying in both.

Please some one look into it and help out Python community

Full text and comments »

  • Vote: I like it
  • +31
  • Vote: I do not like it