Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
3475 | OscarWLY | 保留3位小数的浮点数 | C++ | Accepted | 0 MS | 248 KB | 158 | 2023-01-08 14:22:49 |
#include<bits/stdc++.h> using namespace std; int main() { double a; cin>>a; cout<<setprecision(3)<<setiosflags(ios::fixed); cout<<a; return 0; }