728x90
반응형

단순 사칙연산 문제이다.

C, K, P = map(int, input().split())
li = [K*i + P*(i**2) for i in range(1, C+1)]
print(sum(li))
728x90
반응형

+ Recent posts