Category

Similar Problems

0314. Yakuniy_2_E

Time limit : 1000 ms
Memory limit : 64 mb

Yig’indini xisoblang


$$S = \displaystyle\sum_{x=1}^{n}(ax+b)^2$$


Kiruvchi ma’lumotlar: Uchta butun son $n,a$ va $b$ $(1 \le n,a,b \le 50)$


Chiquvchi ma’lumotlar: Bitta son masala yechimi.

Input
10 3 2
Output
4165
Input
1 2 3
Output
25