Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

Блог пользователя singh1495

Автор singh1495, история, 8 лет назад, По-английски

can anyone tell me why my code gives tle and hows i can remove this i apply mo algo correctly for this than why this gives me tle http://codeforces.com/contest/703/submission/19736475 thanx in advance

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
8 лет назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

It gives tle because MO's algorithm is not the intended solution for this problem. The number of queries is very large. This problem can be solved using segment trees or BIT.