一个由4个数字(0-9之间的整数)组成的密码,每连续两位都不相同,问任意猜一个符合该规律的数字组合,猜中密码的概率为( )。

作者: tihaiku 人气: - 评论: 0
问题 一个由4个数字(0-9之间的整数)组成的密码,每连续两位都不相同,问任意猜一个符合该规律的数字组合,猜中密码的概率为( )。
选项
答案 B
解析 因为是密码,即使是首位也可以为0,又因为“每连续两位都不相同”,则相邻的数字不能相同,因此这个4位数共有10X9X9X9 = 7290(个),则任意猜一个符合该规律的数字组合,猜中密码的概率为1/7290。

相关内容:数字,整数,密码,该规,组合,概率

更多 网友评论0 条评论)
暂无评论
错误啦!

错误信息

  • 消息: [程序异常] : MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
  • 文件: /twcms/kongphp/cache/cache_redis.class.php
  • 位置: 第 85 行
    <?php echo 'KongPHP, Road to Jane.'; ?>