Скоро Codeforces Round 1133 (Div. 1, Div. 2)! Регистрация здесь. ×
Python code execution time and how to make it faster.
Разница между en1 и en2, 57 символ(ов) изменены
So I was doing this question from the Educational round 85 here:↵
https://codeforces.me/contest/1334/problem/C↵
↵
And after a few attempts this is the code that got TLE in 3rd test:↵
https://codeforces.me/contest/1334/submission/209278732↵
↵
However after adding the lines:↵
↵
~~~~~↵
import sys↵
input = sys.stdin.buffer.readline↵
~~~~~↵
The same code got accepted and was pretty quick.
 https://codeforces.me/contest/1334/submission/209278848↵
↵
This made me wonder, are there any more things I can add to my Python code to make it run faster? Any answers or even links would be greatly appreciated. Thank you.↵
↵

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский okay4869 2023-06-11 14:47:17 57
en1 Английский okay4869 2023-06-11 14:46:20 613 Initial revision (published)