Help Needed

Правка en2, от sankalp_, 2018-04-02 06:15:47

I didn't understand why the method mentioned in the editorial works. Can someone provide me with a proof for why it works?

Question : 357B

Editorial Solution :

Let's process the dances in the given order and determine the colors of dancers' clothes. If there are no dancer from some previous dance, we can give the dances different colors arbitrarily. And if there is such dancer, we already know the color of his clothes. So, we arbitrarily distribute the other two colors between the remaining two dancers.

Теги #help, #implementation, #constructive algorithms

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский sankalp_ 2018-04-02 06:15:47 421 Tiny change: 'm/357/B)\nEditoria' -> 'm/357/B)\n\nEditoria'
en1 Английский sankalp_ 2018-04-02 05:55:28 193 Initial revision (published)