728x90
반응형
단순 수학 문제이다.
N = int(input())
ans = 0
for n in range(1, N+1):
for i in range(n+1):
ans += n+i
print(ans)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 15610번 Abbey Courtyard(python) (0) | 2021.02.07 |
---|---|
백준 알고리즘 15474번 鉛筆(python) (0) | 2021.02.07 |
백준 알고리즘 15128번 Congruent Numbers(python) (0) | 2021.02.07 |
백준 알고리즘 15080번 Every Second Counts(python) (0) | 2021.02.07 |
백준 알고리즘 15059번 Hard choice(python) (0) | 2021.02.07 |