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!!
Auto comment: topic has been updated by jarvis307 (previous revision, new revision, compare).