- 开心农场(HOI)
- 2009-08-23 20:43:56 @
var
n,m,t,k:longint;
f:array [0..3000,0..3000] of longint;
time:array [0..3000] of longint;
crop:array [0..3000,1..3] of longint;
procedure pai(l,r:longint);
var i,j,t,m:longint;
begin
i:=l; j:=r;
m:=time[(l+r) div 2];
repeat
while time[i]m do dec(j);
if ij;
if l=crop[c,2]) then
begin
money:=money+n*crop[c,3];
c:=0;
end;
if (c=0) and (timesk) then
begin
data2:=0;
for i:=0 to m do
begin
data:=dfs(times+1,i)-n*crop;
if data>data2 then data2:=data;
end;
money:=money+data2;
end;
f[times,t]:=money;
exit(money);
end;
begin
init;
fillchar(f,sizeof(f),255);
writeln(dfs(1,0));
end.
神牛们帮我看看!
4 条评论
-
great马甲 LV 8 @ 2010-04-11 21:00:29
A了
RT
-
2009-09-05 14:29:56@
?
没有考虑到种子跨过登陆的时间?
-
2009-08-25 00:15:01@
说清楚呀
我也70 超时3个
-
2009-08-23 21:11:39@
貌似没有考虑种子生长期跨过登陆时间的情况吧。。
- 1