iceman91's blog

By iceman91, 12 years ago, In English

Here is the link to the problem and here is the link to my solution. I am using a disjoint set data structure to store 2 kinds of elements x and !x. If x and y are in the same set then they have the same type. If !x and y are in same set then x can eat y. I keep getting WA. Does anybody has any idea about this?

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

| Write comment?