본문 바로가기
python-algorithm

백준 23348 스트릿 코딩 파이터

by 무적김두칠 2022. 3. 10.

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
반응형

댓글