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

Автор prabalsingh24, история, 5 лет назад, По-английски

Someone please help me find error in my code for this probelem. Problem C Educational Round 65. I am getting MLE. Any help would be appreciated. https://codeforces.com/contest/1167/submission/54526141

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

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

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

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

Sorry for dont help in your code, but there's a simpler code than yours. It consists only of Union-Find Data Structure. It's a straight-forward algorithm for solving this problem. Hope this helps!