Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5948 高振轩 求绝对值II C++ Accepted 0 MS 268 KB 205 2024-12-21 14:47:33

Tests(2/2):


Code:

#include<bits/stdc++.h> using namespace std; void s(double x){ if(x<0){ cout<<-x; } else if(x==0){ cout<<'0'; } if(x>0){ cout<<x; } } int main(){ double a,b; cin>>a; s(a); }