TLE USING MO'S

Revision en1, by Danny_Phantom, 2022-11-29 14:07:21

i was trying to solve https://codeforces.com/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.com/contest/221/submission/183198017

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Danny_Phantom 2022-11-29 19:53:38 160
en1 English Danny_Phantom 2022-11-29 14:07:21 238 Initial revision (published)