cb021 Tính giá trị biểu thức
View as PDF
Submit solution
Points:
100.00 (partial)
Time limit:
1.0s
Memory limit:
256M
Input:
stdin
Output:
stdout
Author:
Problem type
Allowed languages
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch
Tính giá trị biểu thức
Cho biểu thức ~ A(x) = x^3 + 3x^2 + x + 1~. Với giá trị của ~x~, tính và in ra giá trị của biểu thức trên
Input:
Số nguyên dương ~x~ không quá ~10^5~.
Output:
Kết quả của biểu thức A(x)
Ví dụ:
| Input | Output |
|---|---|
| 2 | 23 |
Comments
khó vãi