Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
112239 常钰杰 求绝对值 C++ Accepted 0 MS 272 KB 251 2025-03-08 18:33:44

Tests(2/2):


Code:

#include<iostream> using namespace std; double GdZ(int a) { int ans; if(a<0) { ans=-a; } else { ans=a; } return ans; } int main() { double a; cin>>a; cout<<GdZ(a)<<endl; }