- 相關(guān)推薦
Sap筆試題目分享
1.Jeff and Diamond like playing game of coins,One day theydesigned a new set of rules:
1)Totally 10 coins
2)One can take away 1,2or 4 coins at one time by turns3)Who takes the last loses.
Given these rules Whether the winning status is pre-determined or not解答:
1:從后面開始考慮,最后肯定要留1個(gè)才能保證自己贏2:所以要設(shè)法讓對(duì)方留下2,3,5個(gè)
3:也就是要自己取后留下1,4,6,7,8,9……4:如果自己取后留下6,對(duì)方取2個(gè),與(3)矛盾,所以排除65:如果自己取后留下8,對(duì)方取4個(gè),與(3)一樣情況,所以也排除86:同樣,9也不行,如果我抽后剩下9,對(duì)方抽2個(gè),就反過(guò)來(lái)成對(duì)方抽剩成7個(gè)了,也與(3)矛盾,所以也排除7:所以很顯然,我只能抽剩1,4,7
8:因?yàn)橹荒艹楹笫?,4,7才能贏,我先抽得話不可能達(dá)到這幾個(gè)數(shù),很顯然,只能讓對(duì)方先抽,也即是先抽的人輸
【Sap筆試題目分享】相關(guān)文章:
OPPO筆試真題分享,筆試題目分享11-21
分享VB 筆試題目11-21
Google筆試題目分享11-21
奧美筆試題目分享11-26
口語(yǔ)和筆試題目分享11-21
東方廣場(chǎng) 筆試題目分享11-21
上海所的筆試題目分享11-21
漢王筆試題目分享11-21
瑪氏的筆試題目分享11-21