level 9
program juzheng;
var
a,b:array[1..200,1..200] of integer;
n,i,j,p,min:integer;
procedure juzheng(x:integer);
var
w,y:integer;
beginfor w:=1 to n do
if a[w,x]<min then
begin
min:=a[w,x];
y:=w;
end;
writeln(y,' ',x,' ',min);
end;
begin
assign(input,'juzheng.in');
assign(output,'juzheng.ou');
reset(input);
rewrite(output);
readln(n);
for i:=1 to n do
begin
for j:=1 to n do
read(a[i,j]);
readln
end;
for i:=1 to n do
begin
min:=10001;
for j:=1 to n do
if a[i,j]<min then
begin
min:=a[i,j];
p:=j;
end;
juzheng(p);
end;
close(input);
close(output);
end.
2015年05月10日 08点05分