Problem with MO's algorithm

Правка en1, от svg_af, 2015-12-24 22:31:57

Hello there I've been reading up on MO's algorithm and sqrt decomposition and i think i've figured out the concept

so i'm trying to solve this problem but i keep getting TLE and i can't seem to figure out what i'm doing wrong

Here's my code

Thank you all in advance :D

Теги sqrt_decomposition, mos_algorithm, time limit exceeded

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский svg_af 2015-12-24 22:31:57 380 Initial revision (published)