Advertisement
WupEly

Untitled

Dec 18th, 2022
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.08 KB | None | 0 0
  1. import sys
  2.  
  3. print(max(sys.stdin, key=lambda s: (s.count('a'), len(s), max(s[0]))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement