본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 17577번 Scores of Final Examination

by 현장 2023. 6. 23.

-Code

while True:
    n, m = map(int, input().split())

    if n == m == 0:
        break

    total_points = [0] * n

    for _ in range(m):
        points = list(map(int, input().split()))

        for i in range(n):
            total_points[i] += points[i]

    print(max(total_points))