-Code
max_score = [0, 51, 180]
res_index = 0
for i in range(int(input())):
s, c, l = map(int, input().split())
if s > max_score[0] or (s == max_score[0] and c < max_score[1]) or (
s == max_score[0] and c == max_score[1] and l < max_score[2]):
max_score = [s, c, l]
res_index = i
print(res_index + 1)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 10173번 니모를 찾아서 (0) | 2023.05.10 |
---|---|
[백준/파이썬] 16769번 Mixing Milk (0) | 2023.05.09 |
[백준/파이썬] 4564번 숫자 카드놀이 (0) | 2023.05.07 |
[백준/파이썬] 27160번 할리갈리 (0) | 2023.05.06 |
[백준/파이썬] 18238번 ZOAC 2 (0) | 2023.05.05 |