Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
60774 | teacher_wang | 输出绝对值 | C++ | Accepted | 0 MS | 248 KB | 187 | 2025-02-14 10:21:55 |
#include<iostream> #include<iomanip> using namespace std; int main() { double a; cin>>a; if(a < 0) a = -a; cout<<fixed<<setprecision(2)<<a; return 0; }