[/SIZE][/FONT]
[FONT=Arial][SIZE=3]type dathuc:array[0..100] of integer;[/SIZE][/FONT]
[FONT=Arial][SIZE=3] var a,b:dathuc;[/SIZE][/FONT]
[FONT=Arial][SIZE=3] ba,bb;integer;[/SIZE][/FONT]
[FONT=Arial][SIZE=3] i,j:integer;[/SIZE][/FONT]
[FONT=Arial][SIZE=3]procedure nhap;[/SIZE][/FONT]
[FONT=Arial][SIZE=3]var f:text;[/SIZE][/FONT]
[FONT=Arial][SIZE=3]begin[/SIZE][/FONT]
[FONT=Arial][SIZE=3]assign(f,'DATHUC.INP');[/SIZE][/FONT]
[FONT=Arial][SIZE=3]reset(f);[/SIZE][/FONT]
[FONT=Arial][SIZE=3]readln(f,,ba);[/SIZE][/FONT]
[FONT=Arial][SIZE=3]i:=ba;[/SIZE][/FONT]
[FONT=Arial][SIZE=3]while i>=0 do[/SIZE][/FONT]
[FONT=Arial][SIZE=3]begin[/SIZE][/FONT]
[FONT=Arial][SIZE=3]read(f,a[i]);[/SIZE][/FONT]
[FONT=Arial][SIZE=3]dec(i);[/SIZE][/FONT]
[FONT=Arial][SIZE=3]end;[/SIZE][/FONT]
[FONT=Arial][SIZE=3]readln(f );[/SIZE][/FONT]
[FONT=Arial][SIZE=3]i:=bb;[/SIZE][/FONT]
[FONT=Arial][FONT=Arial][SIZE=3]while i>=0 do[/SIZE][/FONT]
[FONT=Arial][SIZE=3]begin[/SIZE][/FONT]
[FONT=Arial][SIZE=3]read(f,b[i]);[/SIZE][/FONT]
[FONT=Arial][SIZE=3]dec(i);[/SIZE][/FONT]
[FONT=Arial][SIZE=3]end;[/SIZE][/FONT]
[SIZE=3]close(f);[/SIZE]
[/FONT][FONT=Arial][SIZE=3]end;[/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3]procedure swap(var a,b:dathuc);[/SIZE][/FONT]
[FONT=Arial][SIZE=3]tg:dathuc;[/SIZE][/FONT]
[FONT=Arial][SIZE=3]begin[/SIZE][/FONT]
[FONT=Arial][SIZE=3]tg:=a;[/SIZE][/FONT]
[FONT=Arial][SIZE=3]a:=b;[/SIZE][/FONT]
[FONT=Arial][SIZE=3]b:=tg;[/SIZE][/FONT]
[FONT=Arial][SIZE=3]end;[/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3]function nhan(a,b:dathuc):dathuc;[/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3]begin[/SIZE][/FONT]
[FONT=Arial][SIZE=3]for i:=1 to ba do[/SIZE][/FONT]
[FONT=Arial][SIZE=3] for j:=1 to bb do[/SIZE][/FONT]
[FONT=Arial][SIZE=3]begin[/SIZE][/FONT]
[FONT=Arial][SIZE=3] nhan[i+j] :=a[i]*b[j];[/SIZE][/FONT]
[FONT=Arial][SIZE=3]end;[/SIZE][/FONT]
[FONT=Arial][SIZE=3]end;[/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3]function cong(a,b:dathuc):dathuc;[/SIZE][/FONT]
[FONT=Arial][SIZE=3]begin[/SIZE][/FONT]
[FONT=Arial][SIZE=3]if ba< bb then swap(a,b);[/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3]for i:=bb+1 to ba do b[i]:=0;[/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3]for i:=0 to ba do cong[i]:=a[i]+b[i];[/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3]end;[/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3]function max(a,b:integer):integer;[/SIZE][/FONT]
[FONT=Arial][SIZE=3]begin[/SIZE][/FONT]
[FONT=Arial][SIZE=3]if a> b max:=a else max:=b;[/SIZE][/FONT]
[FONT=Arial][SIZE=3]end;[/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3]function tru(a,b:dathuc):dathuc;[/SIZE][/FONT]
[FONT=Arial][SIZE=3]begin [/SIZE][/FONT]
[FONT=Arial][SIZE=3]if ba>bb then for i:=bb+1 to ba do b[i]:=0[/SIZE][/FONT]
[FONT=Arial][SIZE=3]esle for i:=ba+1 to bb do a[i]:=0;[/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3]for i:=1 to max(ba,bb) do tru[i]:=a[i]-b[i];[/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3]end;[/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3]begin[/SIZE][/FONT]
[FONT=Arial][SIZE=3]nhap;[/SIZE][/FONT]
[FONT=Arial][SIZE=3].....[/SIZE][/FONT]
[FONT=Arial][SIZE=3].....[/SIZE][/FONT]
[FONT=Arial][SIZE=3].....[/SIZE][/FONT]
[FONT=Arial][SIZE=3].....[/SIZE][/FONT]
[FONT=Arial][SIZE=3]end.[/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3][/SIZE][/FONT]
[FONT=Arial][SIZE=3]