TLE in python solution

Правка en1, от Stylebender18, 2020-12-21 05:31:35

Hello guys, yesterday I participated in codeforces round 692 div2 and in problem B https://codeforces.net/contest/1465/problem/B I used brute force approach my solution https://codeforces.net/contest/1465/submission/101874400 like others but I got TLE 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 too. So can someone please help me find out why I am getting TLE with this solution

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский Stylebender18 2020-12-21 05:53:22 132 Tiny change: 'veryone,\nYesterda' -> 'veryone,\n\nYesterda'
en2 Английский Stylebender18 2020-12-21 05:39:41 44 Tiny change: 'th python too.\n So' -> 'th python in same logic too.\n So' (published)
en1 Английский Stylebender18 2020-12-21 05:31:35 644 Initial revision (saved to drafts)