SPOJ — COLORCAT

Правка en2, от 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.

Теги algorithm, algorithms

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский pranjal.ssh 2015-09-28 20:47:49 2 Tiny change: 'h useful. \n\nAny hi' -> 'h useful. 11\n\nAny hi'
en1 Английский pranjal.ssh 2015-09-17 21:27:06 330 Initial revision (published)