【贪心】赶做业

http://icpc.upc.edu.cn/problem.php?cid=1424&pid=9 认真思考后,正确的贪心策略应该是先考虑扣分最多的做业,从截止的那天开始安排,若已安排其余的做业则继续向前安排,成功AC。php #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> using namesp
相关文章
相关标签/搜索