AtCoder Beginner Contest 172
翻译中…
Problem Statement
翻译中…
Given an integer $a$ as input, print the value $a + a^2 + a^3$.
翻译中…
Constraints
翻译中…
$1 \leq a \leq 10$$a$is an integer.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
a
翻译中…
Output
翻译中…
Print the value $a + a^2 + a^3$ as an integer.
翻译中…
样例
Input #1
2
Output #1
14
When $a = 2$, we have $a + a^2 + a^3 = 2 + 2^2 + 2^3 = 2 + 4 + 8 = 14$.
Print the answer as an input. Outputs such as `14.0` will be judged as incorrect.
Input #2
10
Output #2
1110
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。