1
2
3
4
5
6
7
8
9
10
|
a,b,c=map(int , input().split())
finalScore=0
n=int(input())
for i in range(n):
teamScore=0
for j in range(3):
aCnt,bCnt,cCnt=map(int,input().split())
teamScore+=aCnt*a+bCnt*b+c*cCnt
finalScore=max(finalScore,teamScore)
print(finalScore)
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 23803 골뱅이 찍기 - ㄴ (0) | 2022.03.10 |
---|---|
백준 23795 사장님 도박은 재미로 하셔야 합니다 (0) | 2022.03.10 |
백준 15734 명장 남정훈 (0) | 2022.03.10 |
백준 20361 일우는 야바위꾼 (0) | 2022.03.08 |
백준 15633 Fan Death (0) | 2022.03.08 |
댓글