Advertisement
Infiniti_Inter

newPaste

May 19th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.21 KB | None | 0 0
  1. var
  2.   max, n, i, cur:integer;
  3. begin
  4.   read(n);
  5.   max := -4602;
  6.   for i := 1 to n do
  7.     begin
  8.       read(cur);
  9.       if (cur mod 3 = 0) and (cur > max) then
  10.         max := cur;
  11.     end;
  12.   Writeln(max);
  13. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement