home archives github knives links
tags 洛谷
categories
only title title and content
P1113

题解

因为每个任务$k$的准备工作只可能为$1,2…k-1$,所以最长时间取其中最大值即可