Problem Statement: https://mirror.codeforces.com/contest/2010/problem/C2 Could anyone please tell the approach to this question[problem:2010C2]..
This is my approach: https://mirror.codeforces.com/contest/2010/submission/279996223 and I'm getting TLE on tc 134