Idk why but this [code](https://codeforces.me/contest/474/submission/311617170) is giving runtime error on the problem [474F-Ant Colony](https://codeforces.me/problemset/problem/474/F). WA or TLE would be okay but runtime error!. Please someone fix this.