Problem: https://codeforces.me/contest/1355/problem/B
My solution: https://codeforces.me/contest/1355/submission/80313155
This uses the same logic as used in the editorial. Can someone explain why I got the TLE verdict?
Problem: https://codeforces.me/contest/1355/problem/B
My solution: https://codeforces.me/contest/1355/submission/80313155
This uses the same logic as used in the editorial. Can someone explain why I got the TLE verdict?