SPOJ — COLORCAT

Revision en2, by pranjal.ssh, 2015-09-28 20:47:49

Hi, I am unable to solve the following problem. http://www.spoj.com/problems/COLORCAT/

I tried a few things like denoting the color change mathematically... the c1 and c2 colored cats talk to each other then their color changes to -(c1+c2) (mod 3) but it wasn't much useful.

Any hints or ideas are welcome.

Tags algorithm, algorithms

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English pranjal.ssh 2015-09-28 20:47:49 2 Tiny change: 'h useful. \n\nAny hi' -> 'h useful. 11\n\nAny hi'
en1 English pranjal.ssh 2015-09-17 21:27:06 330 Initial revision (published)