https://codeforces.com/contest/688/problem/C I tried this but it gives time limit https://codeforces.com/contest/687/submission/105173353 any reason why?