SHARE
TWEET

Untitled

a guest May 24th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. M = -1
  2. ans = []
  3. n = int(input())
  4. for i in range(n):
  5.     sn, name, *b = input().split()
  6.     b = sum(map(int, b))
  7.     if b > M:
  8.         M = b
  9.         ans = [sn + ' ' + name]
  10.     elif b == M:
  11.         ans += [sn + ' ' + name]
  12. print(*ans, sep='\n')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top