Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Time limit exceed for python in q2 cf round 709 div 2
Разница между en1 и en2, 109 символ(ов) изменены
i submited my code in python and got tle   
and got ac when submiiting same code written in c
  
[problem B](https://codeforces.com/contest/1484/problem/B)
  
[submission in python==[](https://codeforces.com/contest/1484/submission:/110643804])  
[submission in c==[](https://codeforces.com/contest/1484/submission:/110665296])   
i think time limit for the questions should be checked for every language first
  
the main thing is to think of an approach in o(n)
  
if we use o(n^2) it will definitely gonna take more than 10 seconds
  
so the time limit should be set that accepts all the solutions with o(n) approach

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский divrthor345 2021-03-22 16:59:11 109
en1 Английский divrthor345 2021-03-22 16:56:29 576 Initial revision (published)