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

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

Hello everyone,

Yesterday I participated in codeforces round 692 div2 and in problem B https://codeforces.net/contest/1465/problem/B I used brute force approach in my solution https://codeforces.net/contest/1465/submission/101874400 just like others did but I got TLE in 11th case however everyone using same logic but having different language got their solution accepted so I convinced myself that its because python is a little bit slower then others but when I went to check how other python users did in that problem I found that they got accepted with python in same logic too.

This guy used python too and his solution https://codeforces.net/contest/1465/submission/101871806 got accepted

So can someone please help me find out why I am getting TLE with this solution

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

»
4 года назад, # |
Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

I think the problem in programming language which you used. Because PyPy 3 is faster than Python 3 Here is the proof that your code got accepted in PyPy solution: https://codeforces.net/contest/1465/submission/101926654