- 保留3位小数的浮点数
答案
- @ 2025-8-4 11:23:11
using namespace std;
int main(){
float a;
cin >> a;
cout << fixed << setprecision(3) << a;
return 0;
}
3 条评论
-
吕梓锐 LV 7 @ 2025-8-4 11:24:20答案
-
@ 2025-8-4 11:24:05要
-
@ 2025-8-4 11:23:50#include<bits/stdc++.h> using namespace std; int main(){ float a; cin>>a; cout<<fixed<<setprecision(3)<<a; return 0; }
- 1
信息
- ID
- 28
- 时间
- ms
- 内存
- MiB
- 难度
- 4
- 标签
- 递交数
- 180
- 已通过
- 89
- 上传者