ChaseDream
搜索
返回列表 发新帖
查看: 2489|回复: 3
打印 上一主题 下一主题

问道数学题

[复制链接]
跳转到指定楼层
楼主
发表于 2010-10-29 14:13:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
A three-digit code for certain logs uses the digits 0,1,2,3,4,5,6,7,8,9, according to the following constraints. The first digit cannot be 0 or 1, the second digit must be 0 or 1, and the second and third digits cannot both be 0 in the same code.How many different codes are possible?
答案是 152

谁告诉我能怎么做的啊
收藏收藏 收藏收藏
沙发
发表于 2010-10-29 14:27:51 | 只看该作者
第1位 8种选择
第2位必须为0和1,并且2,3位不能同时为0
所以2,3位总共有 19种选择 ( 01,02...到19 )
所以结果是 8*19=152
板凳
发表于 2010-10-29 14:29:33 | 只看该作者
8*1*9+8*1*10

In the first case, (8*1*9), the 2nd digit is assumed to be 0, and therefore, there are 9 possibilities for the third digit (1-9).  On top of that, there are 8 possibilities for the first digit, so in the case when the 2nd digit is 0, there are 8*1*9 possible codes.  

In the second case, (8*1*10), the 2nd digit is assumed to be 1.  In that case, there are 10 possibilities for the 3rd digit (0-9).  There are still 8 possibilities for the first digit, so there are 8*1*10 possible codes.  The total number of possible codes are the sum of the two cases.
地板
 楼主| 发表于 2010-10-31 07:29:17 | 只看该作者
谢谢啊。非常清楚
您需要登录后才可以回帖 登录 | 立即注册

Mark一下! 看一下! 顶楼主! 感谢分享! 快速回复:

手机版|ChaseDream|GMT+8, 2025-9-6 14:16
京公网安备11010202008513号 京ICP证101109号 京ICP备12012021号

ChaseDream 论坛

© 2003-2025 ChaseDream.com. All Rights Reserved.

返回顶部