小王去超市购物,带现金245元,其中1元6张、2元2张、5元3张、10元2张、50元2张、100元1张,选购的物品总计167元,若用现金结账且不需要找零,...

作者: tihaiku 人气: - 评论: 0
问题 小王去超市购物,带现金245元,其中1元6张、2元2张、5元3张、10元2张、50元2张、100元1张,选购的物品总计167元,若用现金结账且不需要找零,则不同的面值组合方式有:
选项 A.6种 B.7种 C.8种 D.9种
答案 C
解析 情况数较少,采用枚举,需要花费167元,剩下元,剩下78元的组合方式数等同于167元组合数。 1张50元+2张10元+1张5元+1张2元+1张1元=78元; 1张50元+2张10元+1张5元+3张1元=78元; 1张50元+2张10元+2张2元+4张1元=78元; 1张50元+2张10元+1张2元+6张1元=78元; 1张50元+1张10元+2张5元+2张2元+4张1元=78元; 1张50元+2张10元+2张5元+1张2元+6张1元=78元; 1张50元+1张10元+3张5元+1张2元+1张1元=78元; 1张50元+1张10元+3张5元+3张1元=78元; 总共8种情况。 故正确答案为C。

相关内容:小王,超市,购物,现金,245元,100元,物品,167元,若用

猜你喜欢

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