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?