Advertisement
nq1s788

15.2

Apr 9th, 2024
923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. n = int(input()) #кол-во чисел
  2. answ = 0 #самое большое найденное
  3. for i in range(n):
  4.     x = int(input())
  5.     if x % 10 == 2: # % -- остаток от деления
  6.         answ = max(answ, x)
  7. print(answ)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement