daniil-vlasenko

7.38

Jul 19th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. n = 0
  2. x = int(input())
  3. m = x
  4. if x < 100:
  5. n += 1
  6. while x != 0:
  7. x = int(input())
  8. if x < 100 and x != 0:
  9. n += 1
  10. if x > m:
  11. m = x
  12. if n > 0:
  13. print('YES', m)
  14. else:
  15. print('NO', m)
Advertisement
Add Comment
Please, Sign In to add comment