0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-09-19 22:25:27 +00:00

B2021 输出保留 3 位小数的浮点数

R56994584
This commit is contained in:
Baoshuo Ren 2021-08-26 15:13:30 +08:00 committed by Baoshuo Ren
parent 91486e9a70
commit 76fb2474b0
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

View File

@ -0,0 +1,10 @@
#include <bits/stdc++.h>
using namespace std;
int main() {
float a;
cin >> a;
cout << fixed << setprecision(3) << a << endl;
return 0;
}