Help Needed

Revision en2, by 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.

Tags #help, #implementation, #constructive algorithms

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English sankalp_ 2018-04-02 06:15:47 421 Tiny change: 'm/357/B)\nEditoria' -> 'm/357/B)\n\nEditoria'
en1 English sankalp_ 2018-04-02 05:55:28 193 Initial revision (published)