dxnge

18

Sep 28th, 2021
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. with open('17-4.txt') as f:
  2.     a = list(map(int, f.read().split()))
  3. b = filter(lambda x: x % 31 == 0 or x % 47 == 0 or x % 53 == 0, a)
  4. c = list(filter(lambda x: x % 3 == x % 5, b))
  5. print(f'Количество цифр: {len(c)}')
  6. print(f'Минимальное число: {min(list(c))}')
  7. #31 и 1081
Advertisement
Add Comment
Please, Sign In to add comment