| 题目链接 | 难度等级 | 完成状态 | 完成分数 | 最后编辑时间 | 需要注意 |
|---|---|---|---|---|---|
| 求和 | ★☆☆☆☆ | 答案正确 | 100 | {{{time}}} | 无 |
整数a*实数b/10,结果四舍五入。
入门题没什么好说的。直接调用了cmath的round函数。
| 2235.cpp代码已折叠
展开折叠内容
|
|---|
#include<cstdio>
#include<cmath>
int main(){
double a,b;
scanf("%lf %lf",&a,&b);
printf("%d",(int)round(a*b/100)*10);
return 0;
}
|