Advertisement
Spocoman

03. Numbers

Nov 6th, 2023 (edited)
858
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. numbers = sorted(list(map(int, input().split(' '))), reverse=True)
  2. top_5 = [n for n in numbers if n > (sum(numbers) / len(numbers))][:5]
  3. print("No" if len(top_5) == 0 else ' '.join(map(str, top_5)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement