Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
19876 | 海瑧 | 输出绝对值 | C++ | Accepted | 0 MS | 248 KB | 224 | 2023-06-10 12:00:27 |
#include<iostream> #include<iomanip> using namespace std; int main(){ float n; cin >> n; if (n>=0){ cout << fixed << setprecision(2) << n; } else { cout << fixed << setprecision(2) << n; } return 0; }