Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
163 | ZRH | 【基础题】绝对值 | C++ | Wrong Answer | 0 MS | 268 KB | 386 | 2022-07-21 10:34:48 |
#include<iostream> //输入函数库 #include<iomanip> #include<cmath> //数学函数库 #include<cstdio> #include<ctime> #include<cstring> #include<cstdlib> #include<string> #include<stdlib.h> #include<sys/time.h> using namespace std; int main(){ double x; cin>>x; if(x>=0){ printf("%.2lf,x"); } else{ x=0-x; printf("%.2lf,x"); } return 0; }
------Input------
567.220439
------Answer-----
567.22
------Your output-----
0.00,x