SWEA 1859 - 백만 장자 프로젝트


SWEA 1859 - 백만 장자 프로젝트

1234567891011121314151617for i in range(int(input())): cnt = 0 summation = 0 n = int(input()) price = list(map(int, input().split())) for j in reversed(price): if not cnt: cnt = j continue if j <= cnt: summation += cnt - j else: cnt = j print("#%d %d" % (i+1,summation))cs...

SWEA 1859 - 백만 장자 프로젝트에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.



원문링크 : SWEA 1859 - 백만 장자 프로젝트