Блог пользователя Zaoldyeck

Автор Zaoldyeck, история, 2 года назад, По-английски

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

  • Проголосовать: нравится
  • -1
  • Проголосовать: не нравится

»
2 года назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

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.