乐乐和聪聪轮流从中拿1个或2个
- 时间:2020-05-14 13:11:46
- 分类:数学世界
- 阅读:132 次
数学题:箱子里装了16个球,乐乐和聪聪轮流从中拿1个或2个,谁拿到最后一个球谁就获胜,如果聪聪先拿,第一次应该拿几个才能确保获胜?如果箱子里有20个球呢?说说理由。
数学题解答:16个球,聪聪应该先拿1个,可以确保获胜。因为,当他拿一个后,还剩下15个球。此时如果乐乐拿1个,他就拿2个;如果乐乐拿2个,他就拿1个。总之,聪聪拿的与乐乐拿的合起来是3个。而15里面正好5个3,这样便可以确保聪聪拿到最后一个球。
拿的方法就是,聪聪拿过之后,剩下的球的数量是3的倍数,便可以确保聪聪获胜。这样如果是20个球,你一定知道是怎么拿的了吧?
推荐阅读:How to Remove Items/Entries with Specific Values from Map/HashMa Find the Real Root of 4^x + 6^x = 9^x Depth First Search (Backtracking) Algorithm to Solve a Sudoku Ga Using Bitmasking Algorithm to Compute the Combinations of an Arr Flashing the BIOS of HPZ800 Server to 3.61 Rev.A Algorithm to Sum The Fibonacci Numbers How to Adapt Your Blog to Increasing Zero-Click Searches Understanding Marketing Automation & Its Perks for Your Busi Adobe Flash Player Nears its EOL, Will this Affect your Blog? How to Create Unique Content through User Personas
- 评论列表
-
- 添加评论