Is it possible to solve this question to solve using MO's algorithm ?

Revision en1, by drexdelta, 2017-04-22 14:45:16

I have been trying this question to solve with MO's algorithm. but My solution was getting TLE. Please somebody atleast share an approach, if it is possible to solve with MO's algorithm . Link to problem : http://codeforces.net/contest/588/problem/E

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English drexdelta 2017-04-22 14:45:59 26
en1 English drexdelta 2017-04-22 14:45:16 323 Initial revision (published)