Hi! I'm trying to solve [811B](http://mirror.codeforces.com/problemset/problem/811/B) Here is my submission link↵
[http://mirror.codeforces.com/contest/811/submission/30908867](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?
[http://mirror.codeforces.com/contest/811/submission/30908867](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?