i was trying to solve https://codeforces.net/problemset/problem/221/D using mo's but i was getting tle so can someone help how can i optimize this code my submissions https://codeforces.net/contest/221/submission/183198017 update 1:https://codeforces.net/contest/221/submission/183252354 accepted answer update : can someone explain why i got tle using c++20 but acc using c++17!