Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
60111 | 王一涵(吃土豆长大的马铃薯) | 输出绝对值 | C++ | Accepted | 0 MS | 244 KB | 185 | 2025-01-11 15:42:10 |
#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; }