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