$\color{blue}{\text{Nhập_một_mảng_từ_bàn_phím._Xuất_ra_màn_hình_các}}$ $\color{red}{\text{_số_xuất_hiện_1_lần}}$ $\color{white}{\text{Chép_mạng_là_chết_với_mình}}$ $\color{green}{\text{Giúp_Key対象_nhé}}$
1 câu trả lời
$\color{red}{\text{uses crt;}}$
$\color{GreenYellow}{\text{var n,i:longint;}}$
$\color{Peach}{\text{a,d: array [1..10000] of longint;}}$
$\color{Bittersweet}{\text{begin}}$
$\color{CarnationPink}{\text{clrscr;}}$
$\color{NavyBlue}{\text{write('Nhap n: '); readln(n);}}$
$\color{RedOrange}{\text{for i:=1 to n do}}$
$\color{WildStrawberry}{\text{begin}}$
$\color{Cerulean}{\text{write('Nhap phan tu thu ',i,':');}}$
$\color{Lavender}{\text{read(a[i]);}}$
$\color{Turquoise}{\text{inc(d[a[i]]);}}$
$\color{PineGreen}{\text{end;}}$
$\color{Aquamarine}{\text{writeln;}}$
$\color{LimeGreen}{\text{writeln('Nhung phan tu xuat hien 1 lan la: ');}}$
$\color{Emerald}{\text{for i:=1 to n do}}$
$\color{YellowOrange}{\text{if d[a[i]]=1 then}}$
$\color{Gray}{\text{write(a[i],' ');}}$
$\color{Mulberry}{\text{readln}}$
$\color{RoyalBlue}{\text{end.}}$