I tried to implement recent div2B with as optimised constant as i could. Can someone tell why my solutions TLE. It Tled 7 times in contest. I tried many approaches
eg submissions
https://codeforces.net/contest/1287/submission/68278756
https://codeforces.net/contest/1287/submission/68277154
Can someone tell why the first submission TLE on TC 10