原题来自:IOI 2002
只有数据范围有变,其余同 LOJ #10184. 任务安排 1。
对于全部数据,1≤N≤104,0≤S≤50,1≤Ti,Ci≤1001\le N\le 10^4,0\le S\le 50,1\le T_i,C_i\le 1001≤N≤104,0≤S≤50,1≤Ti,Ci≤100。
By signing up a HFOJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your HFOJ universal account