Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
4655 | 张然正 | 输出绝对值 | C++ | Wrong Answer | 0 MS | 244 KB | 293 | 2023-01-12 16:18:21 |
#include <iostream> #include <iomanip> using namespace std; int main() { float a; if (a < 0) { a = -a; cout << fixed << setprecision(2) << a << endl; } else { cout << fixed << setprecision(2) << a << endl; } return 0; }