prabalsingh24's blog

By prabalsingh24, history, 5 years ago, In English

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://mirror.codeforces.com/contest/1167/submission/54526141

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

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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!