继续刷水题,不能再错了!!
题目大意:
要求在n天内学习t小时,给出每一天可以学习的最小时间和最大时间。问能不能实现,若可以输出时间表。
解题思路:
水题一个,保证在区间范围内的情况下直接贪心。
下面是代码:
#include #include
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn