Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
38505 | 奚晨瑞 | 输出绝对值 | C++ | Accepted | 0 MS | 244 KB | 167 | 2024-01-27 16:00:08 |
#include<iostream> using namespace std; int main() { float n; cin>>n; float N; if(n>0){ N=n; } else{ N=0-n; } printf("%.2f",N); return 0; }