-Code
res = 0
for _ in range(int(input())):
a, d, g = map(int, input().split())
total = a * (d + g)
if a == d + g:
total *= 2
res = max(res, total)
print(res)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 18698번 The Walking Adam (0) | 2022.10.07 |
---|---|
[백준/파이썬] 24623번 Изгороди (0) | 2022.10.06 |
[백준/파이썬] 24751번 Betting (0) | 2022.10.04 |
[백준/파이썬] 25703번 포인터 공부 (0) | 2022.10.03 |
[백준/파이썬] 11257번 IT Passport Examination (0) | 2022.10.02 |