Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
20789 | LeoWang | 保留3位小数的浮点数 | C++ | Accepted | 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; }