Need optimization !

Revision en1, by SADMAN, 2025-10-05 21:12:18

I was trying this problem 840D - Destiny using Mo's algorithm but I got stuck on TLE on test 5 342080782 for using map . Is there any alternative way to solve this problem using Mo's Algorithm?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English SADMAN 2025-10-05 21:12:18 225 Initial revision (published)