Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
42162 张添杰 求绝对值 C++ Accepted 2 MS 268 KB 150 2022-11-13 10:39:50

Tests(2/2):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a>=0){ cout<<a; } else{ cout<<abs(a); } return 0; }