Beakjoon&프로그래머스/파이썬
[백준/파이썬] 1834번 나머지와 몫이 같은 수
현장
2021. 12. 11. 17:21
-코드
n = int(input())
r = 0
for i in range(n):
r += (n + 1) * i
print(r)