有 300 张多米诺骨牌,从 1——300 编号,每次抽取奇数牌,问最后剩下的一张牌是多少号?

作者: tihaiku 人气: - 评论: 0
问题 有 300 张多米诺骨牌,从 1——300 编号,每次抽取奇数牌,问最后剩下的一张牌是多少号?
选项
答案 256
解析 解析:不论题中给出的牌数是多少,小于等于总牌数的 2 的 N 次方的最大值就是最后剩下的牌的序号。(例题中小于等于 300的2 N次方的最大值是2的8次方,故最后剩下的一张牌是 256 号。

猜你喜欢

更多 网友评论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.'; ?>