MaksNew

Untitled

Nov 16th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1.  
  2. Writeln(List[0].Name, ' ', List[0].Score);
  3. for I := 0 to Size-1 do
  4. begin
  5. if ((List[I].Score = List[0].Score) and (List[I].Name <> List[0].Name)) then
  6. begin
  7. Writeln(List[I].Name, ' ', List[I].Score)
  8. end;
  9. end;
  10.  
  11.  
  12. Writeln(List[1].Name, ' ', List[1].Score);
  13. for I := 0 to Size-1 do
  14. begin
  15. if ((List[I].Score = List[1].Score) and (List[I].Name <> List[1].Name)) then
  16. begin
  17. Writeln(List[I].Name, ' ', List[I].Score)
  18. end;
  19. end;
  20.  
  21.  
  22. Writeln(List[2].Name, ' ', List[2].Score);
  23. for I := 0 to Size-1 do
  24. begin
  25. if ((List[I].Score = List[2].Score) and (List[I].Name <> List[2].Name)) then
  26. begin
  27. Writeln(List[I].Name, ' ', List[I].Score)
  28. end;
  29. end;
Advertisement
Add Comment
Please, Sign In to add comment