38.5 个空瓶可以换 1 瓶汽水,某班同学喝了 161 瓶汽水,其中有一些是用喝剩下来的空瓶换的,那么他们至少要买汽水多少瓶?

作者: tihaiku 人气: - 评论: 0
问题 38.5 个空瓶可以换 1 瓶汽水,某班同学喝了 161 瓶汽水,其中有一些是用喝剩下来的空瓶换的,那么他们至少要买汽水多少瓶?
选项
答案 161
解析 解析:大致上可以这样想:先买 161 瓶汽水,喝完以后用这 161 个空瓶还可以换回 32 瓶(1615=32…1)汽水,然后再把这 32 瓶汽水退掉,这样一算,就发现实际上只需要买 161-32=129 瓶汽水。可以检验一下:先买 129 瓶,喝完后用其中 125 个空瓶(还剩 4 个空瓶)去换 25 瓶汽水,喝完后用 25 个空瓶可以换 5 瓶汽水,再喝完后用 5 个空瓶去换 1 瓶汽水,最后用这个空瓶和最开始剩下的 4 个空瓶去再换一瓶汽水,这样总共喝了:129+25+5+1+1=161 瓶汽水.

相关内容:空瓶,汽水,某班,同学,用喝

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