Submit solution
Points:
1.00 (partial)
Time limit:
1.0s
Memory limit:
256M
Author:
Problem types
Allowed languages
C, C#, C++, Go, Java, Pascal, Perl, PHP, Python, Ruby, Rust, Scratch, Swift
Cho ~f(x) = a ×x^2 + b ×x + c~ và giá trị của ~a, b, c, x~. Bạn hãy tính ~f(x)~.
Input
- Gồm một dòng chứa bốn số nguyên ~a, b, c, x~ ~(0 ≤ x, a, b, c ≤ 10^6)~.
Output
- Gồm một dòng duy nhất là kết quả bài toán.
Sample
Input #1
1 2 3 1
Output #1
6
Problem source: Kc97ble - Free Contest
Comments