2630 多项式求值
Time Limit : 2000/1000 MS(Java/Others) | Memory Limit : 65536/32768 KB(Java/Others)
Submits : 14978 | Solved : 8423
Description
编写函数,计算y=f(x)=2x^2+1。
Input
主函数中输入一个浮点数x。
Output
计算并返回y的值。
Sample Input
3
Sample Output
19.00
Template
#include<stdio.h> @-@ int main() { double x,y; scanf("%lf",&x); y=f(x); printf("%.2f\n",y); return 0; }
HINT
程序填空题,模板中@-@的位置是需要填空的部分。
Source
NBU OJ