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

[백준/파이썬] 29895번 Jõululaul

by 현장 2023. 11. 25.

-Code

N = int(input()) + 1

gifts = []

for k in range(1, N):
    gifts.append((N - k) * k)

for count in gifts:
    print(count)