链接:https://codeforces.com/problemset/problem/4/B
Tomorrow Peter has a Biology exam. He does not like this subject much, but d days ago he learnt that he would have to take this exam. Peter's strict parents made him prepare for the exam immediately, for this purpose he has to study not less than minTimei and not more than maxTimei hours per each i-th day. Moreover, they warned Peter that a day before the exam they would check how he has followed their instructions.
So, today is the day when Peter's parents ask him to show the timetable of his preparatory studies. But the boy has counted only the sum of hours sumTime spent him on preparation, and now he wants to know if he can show his parents a timetable sсhedule with d numbers, where each number

彼得明天有一个生物考试。他的父母让他立即准备,要求他在接下来的每一天学习的时间不少于minTimei小时,不超过maxTimei小时。现在父母要检查他的学习计划。如果彼得能给出满足条件的每天学习时间安排,输出'YES'及具体时间;否则输出'NO'。
最低0.47元/天 解锁文章
103

被折叠的 条评论
为什么被折叠?



