Advertisement
NOBLE-_-MAN

Задача7

Oct 6th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. s = [str(i) for i in input().split()]
  2. cmax = s[0]
  3. lmax = len(s[0])
  4. for i in s:
  5.     if s.count(i)>s.count(cmax):
  6.         cmax = i
  7.     if len(i)>len(lmax):
  8.         lmax = i
  9. print(cmax)
  10. print(lmax)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement