zax2002

https://otvet.mail.ru/question/204065549

Oct 23rd, 2017
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 1.04 KB | None | 0 0
  1. program score;
  2. uses sysutils;
  3. var
  4.    cheloveki:array[0..9] of array[0..1] of string;
  5.    max,i:integer;
  6. begin
  7.     cheloveki[0][0] := 'Human1'; cheloveki[0][1] := '1.22';
  8.     cheloveki[1][0] := 'Human2'; cheloveki[1][1] := '1.63';
  9.     cheloveki[2][0] := 'Human3'; cheloveki[2][1] := '1.88';
  10.     cheloveki[3][0] := 'Human4'; cheloveki[3][1] := '1.31';
  11.     cheloveki[4][0] := 'Human5'; cheloveki[4][1] := '1.30';
  12.     cheloveki[5][0] := 'Е**чий динозавр'; cheloveki[5][1] := '58366';
  13.     cheloveki[6][0] := 'Human6'; cheloveki[6][1] := '1.48';
  14.     cheloveki[7][0] := 'Javier Sotomayor'; cheloveki[7][1] := '2.45';
  15.     cheloveki[8][0] := 'Human7'; cheloveki[8][1] := '2.38';
  16.     cheloveki[9][0] := 'Бабка'; cheloveki[9][1] := '0.0009';
  17.    
  18.     max := 0;
  19.    
  20.     for i:=1 to length(cheloveki) - 1 do begin
  21.         if StrToFloat(cheloveki[i][1]) > StrToFloat(cheloveki[max][1]) then max := i;
  22.     end;
  23.     writeln('Победил ', cheloveki[max][0], ' прыгнув на высоту ', cheloveki[max][1], ' метров.');
  24. end.
Add Comment
Please, Sign In to add comment