结果怎么会是0

program xi;

type

bc=record

date:integer;

x,y:integer;

end;

var

num:array[0..300000] of bc;

k:longint;

i,j,c,r:integer;

long:array[0..500,0..500] of integer;

max:array[0..500,0..500] of longint;

procedure int;

begin

read(r,c);

k:=0;

for i:=1 to r do

for j:=1 to c do

begin

max:=1;

k:=k+1;

read(long);

num[k].date:=long; num[k].x:=i; num[k].y:=j;

end;

end;

PROcedure pai(s,t:longint);

var

i,j:longint; p:bc;

mid:integer;

begin

i:=s; j:=t; mid:=num[(i+j) div 2].date;

repeat

while (num[i].datemid) do dec(j);

if i

1 条评论

  • @ 2009-07-24 18:55:26

    **你看看是不是都开longint **

    不是longint ,输出就是0,很奇怪吧?

  • 1

信息

ID
1011
难度
6
分类
动态规划 点击显示
标签
递交数
10384
已通过
2952
通过率
28%
被复制
29
上传者