jarvis307's blog

By jarvis307, history, 23 months ago, In English

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!!

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
23 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by jarvis307 (previous revision, new revision, compare).