I don't know what is right place to ask help regarding questions. I am solving http://codeforces.me/contest/1100/problem/B I read tutorial which solves it in O(m), but my solution is also of O(m), and I am getting TLE. Can someone suggest me the improvements? This is my solution:http://codeforces.me/contest/1100/submission/48488959