https://www.acmicpc.net/problem/25600
25600번: Triathlon
트라이애슬론(Triathlon)이란 라틴어에서 $3$가지라는 의미를 가진 tri와 경기를 뜻하는 athlon의 합성어이다. 우리나라에서는 트라이애슬론 대신 철인 3종 경기로 알려져 있다. 트라이애슬론은 여러
www.acmicpc.net
1
2
3
4
5
6
7
8
9
10
|
if __name__ == '__main__':
scores =[]
n = int(input())
for _ in range(n):
a,d,g=map(int,input().split())
score = a*(d+g)
if a == (d+g):
score*=2
scores.append(score)
print(max(scores))
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 15372 A Simple Problem. (0) | 2022.11.30 |
---|---|
백준 13623 Zero or One (0) | 2022.11.30 |
백준 25881 Electric Bill (0) | 2022.11.29 |
백준 25983 Majestic 10 (0) | 2022.11.29 |
백준 25858 Divide the Cash (0) | 2022.11.29 |
댓글