Zaoldyeck's blog

By Zaoldyeck, history, 2 years ago, In English

Hi, can any one tell me why this submission get a time limit exceeded 138797498

  • Vote: I like it
  • -1
  • Vote: I do not like it

»
2 years ago, # |
  Vote: I like it +1 Vote: I do not like it

I solved it and finally got AC 138839194. I used a technique similar to BFS but used set instead of queue to make the elements stored in the set unique and also the indexes will be sorted so when discover the begin of the set the probability of ignoring other indexes is very high.