Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

Need help for this disjoint set problem.

Правка en1, от light42, 2015-07-22 09:19:23

Click here for the problem

At first sight, it seems that it can simply be solved using disjoint set ds. But the problem is more complicated because we handle two kinds of sets at once. Can anyone give a hint for this problem? (PS : I've already try to write and proof my solution for 3 days but still get WA. I suspect I didn't cover all the possible cases in the problem. And sorry if I'm not explaining my solution. It's too messed up I don't want to use it anymore.)

Теги disjoint-set, data structures

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский light42 2015-07-22 09:19:23 566 Initial revision (published)