47 条题解
-
0浙江OI万岁 LV 3 @ 2009-08-27 07:11:24
飞过海 没水平请不要出来办比赛!浪费别人时间是一件可耻的行为
-
02009-08-27 06:51:39@
MS陷阱很严重……
-
02009-08-26 23:57:29@
诡异的题目....
-
02009-08-26 19:19:05@
怎么做?
-
02009-08-24 13:00:23@
BD
-
02009-08-29 18:08:44@
我就说不要拿出来……car一定要也没办法……
-
-12009-08-29 11:30:23@
var
k,i,j,n,zs:longint;
f:array[0..10000001] of longint;
a,t:array[1..100000] of longint;begin
readln(n,k);
for i:=1 to k do readln(a[i],t[i]);
j:=k;f[n+1]:=0;
for i:=n downto 1 do
begin
f[i]:=maxlongint;
if a[j]i then f[i]:=f
else while a[j]=i do
begin
zs:=t[j]+f[i+t[j]];
if zs