{$B-} program csequen (input,output); {} { } { w } { } { u t F v | v } { } { w F H R } { } { w F Q O r r P Q OP } { } { w F C w } { } { w w F w w } { } { F } { } { g p F o } { } { F P X W T N PP } { } {} const n=10; type ary=array[1..n] of integer; ege=array[1..n,1..n] of integer; coloring=array[1..n] of integer; var e:ege; cv:coloring; v:ary; c,k,j,i:integer; { external proceder acceptcolor(var e:ege;var v:ary;var cv:coloring); } {$I B:MOCOLOR.SRC} begin for k:=1 to n do read(v[k]); readln; for k:=1 to n do begin for j:=1 to n do read(e[k,j]); readln end; acceptcolor(e,v,cv); writeln(lst); writeln(lst,'------------'); for k:=1 to n do begin writeln(lst,'I v[',k:2,']=',cv[k]:2,' I'); writeln(lst,'------------'); end; end.