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.
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.