有一排长椅总共有65个座位,其中已经有些座位上有人就坐。现在又有一人准备找一个位置就坐,但是此人发现,无论怎么选择座位,都会与已经就坐的人相邻。问原来至少...

作者: rantiku 人气: - 评论: 0
问题 有一排长椅总共有65个座位,其中已经有些座位上有人就坐。现在又有一人准备找一个位置就坐,但是此人发现,无论怎么选择座位,都会与已经就坐的人相邻。问原来至少已经有多少人就坐? A.13 B.17 C.22 D.33
选项
答案 C
解析 .[解析] 为了使此人坐下后身边总有人,则原来长椅上除了首尾两个位置,中间的最大空位不能超过2个,首尾两个位置的最大空位数不能超过1个。不妨设第一个座位上有人,则每三个座位上有1人,所以从第1个座位到第63个座位共有21人,而最后边上的两个座位必须再坐一个人,才能保证此人坐下后身边总有人,所以至少有21+1=22人。
发表评论
更多 网友评论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.'; ?>