标题: [趣味益智] [03-11] McDonald's Chicken McNuggets
  本主题由 alloncrazy 于 2008-4-25 23:06 关闭 
alloncrazy
版主
Rank: 10Rank: 10Rank: 10
笑话天地/脑筋急转


灌水天才奖   社区活动参与奖  
UID 19968
精华 2
积分 8
帖子 46915
原创币 116497 YCB
贡献值 1719 GX
原创值 23 YC
活跃值 1114 HY
阅读权限 100
注册 2006-7-17
性 别:  ♀ MM 未婚
论坛团队:  FTP 爱好团员
状态 离线
发表于 2008-3-11 04:52  资料  个人空间  短消息  加为好友 

[03-11] McDonald's Chicken McNuggets

At McDonald's you can buy "Chicken McNuggets" in boxes of 6, 9, and 20.
What is the largest number of nuggets that it is NOT possible to get by buying some combination of boxes?

答案请用积分帖子给出,否则无效!
[ hide=9999]...........[ /hide]请去掉前面的空格使用时。


参考答案:
You can buy any number of nuggets that is evenly divisible by 3 (except for 3) just by using combinations of boxes of 6 and boxes of 9.
(Use at most one box of 9, then multiples of boxes of 6.)

If the number is not divisible by three, use a box of 20. If, after a box of 20 is purchased, the remaining number is divisible by three, you're all set. Otherwise, use a second box of 20. The remaining number will necessarily be divisible by 3, and you're all set.

So the largest number that cannot be purchased would be one that requires two boxes of 20 before the remainder is reduced to a number divisible by three. Since three is the only number evenly divisible by three that cannot be purchased, the largest impossible number is 3 + 20 + 20 = 43。

[ 本帖最后由 alloncrazy 于 2008-4-25 23:06 编辑 ]

顶部
 



当前时区 GMT+8, 现在时间是 2008-5-17 16:15
鄂ICP备05002946号

Powered by Discuz! 5.5.0 ? 2001-2007 Comsenz Inc.
Processed in 0.045003 second(s), 10 queries , Gzip enabled

传奇私服 - DHC - 清除 Cookies - 联系我们 - 原创地位论坛 - Archiver - WAP