var
d : array of integer := new integer[20];
b : array of integer := new integer[5];
begin
d := arrRandom(20, 1, 5);
for var i := 0 to 19 do b[d[i]-1] += 1;
for var i := 1 to 4 do writeln(i+1, ' получили ', b[i], ' учеников');
end.
var
d : array of integer := new integer[20];
b : array of integer := new integer[5];
begin
d := arrRandom(20, 1, 5);
for var i := 0 to 19 do b[d[i]-1] += 1;
for var i := 1 to 4 do writeln(i+1, ' получили ', b[i], ' учеников');
end.