D34d10ck3d

Untitled

Apr 16th, 2020
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. lst = [int(i) for i in input().split()]
  2. max_, index = lst[0], 0
  3. for i,x in enumerate(lst):
  4. if x>=max_:
  5. max_ = x
  6. index = i
  7. print(max_ ,index)
Advertisement
Add Comment
Please, Sign In to add comment