백준 20282번: Game Show! #Python

ColorlessDia·2024년 6월 6일

algorithm/baekjoon

목록 보기
199/808
import sys

C = int(sys.stdin.readline())

sbecs = 100
max_sbecs = sbecs

for _ in range(C):
    V = int(sys.stdin.readline())

    sbecs += V

    if max_sbecs < sbecs:
        max_sbecs = sbecs

print(max_sbecs)

0개의 댓글