#include <iostream>
#include <cmath>
int main()
{
float x1, y1, x2, y2;
std::cout << "x1 :" << std::endl;
std::cin >> x1;
std::cout << "y1 :" << std::endl;
std::cin >> y1 ;
std::cout << "x2 :" << std::endl;
std::cin >> x2;
std::cout << "y2 :" << std::endl;
std::cin >> y2;
float result = std::sqrt((std::pow(std::abs(x1-x2), 2) + std::pow(std::abs(y1-y2), 2)));
std::cout << result << std::endl;
char * temp = new char[0]();
std::cin >> temp;
return 0;
}
Program futbol;
var fio: array [1..25] of string;
gol: array [1..25] of integer;
i,j: integer;
f: string;
begin
writeln ('Введите фамилии игроков, забивших голы');
writeln ('Окончание ввода - пустая строка');
j:=0;
repeat
readln(f)
newfio:=true;
for i:= 1 to j do begin
if fio[i]=f then begin
gol[i]=gol[i]+1;
newfio:=not newfio;
end;
if newfio then begin
j:=j+1;
fio[j]:=f;
end;
while not f='';
for i:= 1 to j do begin
if gol[i]>2 then writeln fio[i];
end;
end.