Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
33005 | teacher_lu | 输出绝对值 | C++ | Wrong Answer | 0 MS | 244 KB | 166 | 2023-12-04 19:05:15 |
#include <bits/stdc++.h> using namespace std; int main() { double x; cin >> x; if(x < 0) x = -1 * x; cout << setprecision(2) << x; return 0; }