Блог пользователя Pranava23

Автор Pranava23, история, 4 года назад, По-английски

I submitted a fairly easy question with N(log(N)) complexity and N<=10^5 which as per theory should pass all test case with a time limit of 1sec. I got TLE in PyPy3 which supposedly runs faster ("Almost always, if you send a solution on PyPy, it works much faster") but the same solution got accepted in Python3.

Can someone please explain the logic and reason behind the same?

Question

PyPy3 Solution

Python3 Solution

Полный текст и комментарии »

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится