86827890 problem:https://codeforces.me/contest/1372/problem/B it says TLE on the 4th test case. Can someone please help me to find a better solution.Thanks in advance.
p.s.:sorry if this isn't how you are supposed to use blogs, i wasn't sure where to post doubts in this website.