回複:挑戰:如果帽子的顏色有10種,什麽樣的算法,可以讓被砍頭的人最少?
label the 10 colors 0 to 9. The first guy says the color that is the modulo-10 sum of all the rest. The surviving prob. is 99.1%.
label the 10 colors 0 to 9. The first guy says the color that is the modulo-10 sum of all the rest. The surviving prob. is 99.1%.