1. 문제
https://www.acmicpc.net/problem/2562
2. 풀이
arr = []
for _ in range(9):
arr.append(int(input()))
ans_idx = max( range(len(arr)), key=arr.__getitem__)
print(arr[ans_idx], ans_idx + 1)
https://www.acmicpc.net/problem/2562
arr = []
for _ in range(9):
arr.append(int(input()))
ans_idx = max( range(len(arr)), key=arr.__getitem__)
print(arr[ans_idx], ans_idx + 1)