1288E — Messenger Simulator Doubt

Правка en2, от jarvis307, 2020-06-25 15:26:56

Hello Codeforces!!

I was attempting 1288E - Messenger Simulator and I am getting TLE on test case 9.

I tried the first and the straight forward approach given in the tutorial i.e. to use merge segment trees for finding the number of distinct elements in a subarray.

I would be grateful if someone could take out 5 mins to look at this code 84970607.

TIA!!

Теги merge sort tree

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский jarvis307 2020-06-25 15:26:56 2
en1 Английский jarvis307 2020-06-25 15:26:00 402 Initial revision (published)