-Code
N = int(input()) + 1
gifts = []
for k in range(1, N):
gifts.append((N - k) * k)
for count in gifts:
print(count)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 25830번 Microwave Mishap (0) | 2023.11.27 |
---|---|
[백준/파이썬] 25933번 Medal Ranking (2) | 2023.11.26 |
[백준/파이썬] 30642번 아이그루스와 화장실 (0) | 2023.11.24 |
[백준/파이썬] 25829번 Presidential Election (1) | 2023.11.23 |
[백준/파이썬] 29986번 Amusement Park Adventure (1) | 2023.11.22 |