Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input()) #кол-во чисел
- answ = 0 #самое большое найденное
- for i in range(n):
- x = int(input())
- if x % 10 == 2: # % -- остаток от деления
- answ = max(answ, x)
- print(answ)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement