| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 32265 | 闻航 | 输出绝对值 | C++ | Accepted | 0 MS | 248 KB | 211 | 2023-11-26 19:51:14 |
#include <iostream> #include <iomanip> using namespace std; int main() { double x; cin>>x; if(x>=0){ cout<<fixed<<setprecision(2)<<x; }else{ cout<<fixed<<setprecision(2)<<-x; } return 0; }