發新話題
打印

帽子與囚犯之超難問題 (絕對唔簡單)

Too simple:

Let Red = 0, Yellow = 1, Black = 2, White = 3,

Prisoner 1:
Value = (Red * 0 + Yellow * 1 + Black * 2 + White * 3) mod 4

Prisoner 1 says the colour with the value listed above.

TOP

發新話題
最近訪問的版塊