1288E — Messenger Simulator Doubt

Revision en2, by 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.


Tags merge sort tree


  Rev. Lang. By When Δ Comment
en2 English jarvis307 2020-06-25 15:26:56 2
en1 English jarvis307 2020-06-25 15:26:00 402 Initial revision (published)