Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
20789 | LeoWang | 保留3位小数的浮点数 | C++ | 通过 | 0 MS | 244 KB | 158 | 2023-06-20 08:44:22 |
#include<bits/stdc++.h> using namespace std; int main() { double a; cin>>a; cout<<setprecision(3)<<setiosflags(ios::fixed); cout<<a; return 0; }