Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- command = input()
- min_num = sys.maxsize
- while command != 'Stop':
- current = int(command)
- if min_num > current:
- min_num = current
- command = input()
- print(min_num)
- Решение с масив:
- numbers = []
- command = input()
- while command != 'Stop':
- numbers.append(int(command))
- command = input()
- print(min(numbers))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement