Hi! I'm trying to solve 811B Here is my submission link http://mirror.codeforces.com/contest/811/submission/30908867 It seems Python cycles are running too slow, because the same code in c++ is passing.
Is there any way to make Python cycles work faster?
Auto comment: topic has been translated by chessdroid (original revision, translated revision, compare)
Try submitting in PyPy. I'm not familiar with the details, but it simply works faster on some types of code involving arrays.