2630 多项式求值
Time Limit : 2000/1000 MS(Java/Others) | Memory Limit : 65536/32768 KB(Java/Others)
Submits : 15177 | Solved : 8540
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
浙公网安备 33020402000166号