← Back to List

23348번: 스트릿 코딩 파이터 ↗

Solutions

Python 3
219 B | 219 chars
a, b, c = map(int, input().split())
ans = 0
for i in range(int(input())):
    s = 0
    for _ in range(3):
        x, y, z = map(int, input().split())
        s += a * x + b * y + c * z
    ans = max(ans, s)
print(ans)