- 不高兴的津津
- 2009-06-10 20:20:29 @
program xuyi;
var
{ a,b:array[1..7] of integer;
s:array[1..20]of integer; }
n, m,x,y,i,k,j:integer;
begin
{ for i:=1 to 7 do;
begin
b[j]:=1;
for j:=1 to 2 do
begin
read (x);
a[i]:=a[j]+x;
end;
end;}
n:=0; k:=0;
for i:=1 to 7 do
begin
readln(x,y);
m:=x+y;
if m 8) and (m>n) then
begin
n:=m;k:=i;
end;
end;
{ else writeln(y); }
writeln(k);
readln;
end.
1 条评论
-
你是一只小兲 LV 4 @ 2014-11-06 21:38:48
哦 我天。用的着数组??
- 1