Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
46183 | zhangyanshuo | 输出绝对值 | C++ | Accepted | 0 MS | 244 KB | 181 | 2024-04-26 20:52:55 |
#include<bits/stdc++.h> using namespace std; int main() { double a; cin>>a; if(a<0) { cout<<-a; return 0; } else { cout<<a; return 0; } return 0; }