scientific_comp_projects/CODE/[python]kattis/trivial/pet.py
2021-10-29 15:16:40 +02:00

11 lines
296 B
Python

acumPoints = []
for i in range(5):
points = input()
points = points.split(' ')
points = list(map(int, points))
acumPoints.append(sum(points))
maxi = max(acumPoints)
position = [i for i, j in enumerate(acumPoints) if j == maxi]
print(str(position[0]+1) +' '+ str(maxi))