Skip to content

Baekjoon 16673

1. Problem

문제 확인하기

2. Solution (Python, memory: 31256KB, time: 40ms)

c, k, p = map(int, input().split())
print(sum((k * i) + (p * i ** 2) for i in range(1, c + 1)))