Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
43737 楼俊毅 求绝对值 C++ Accepted 2 MS 264 KB 149 2023-01-06 12:24:56

Tests(2/2):


Code:

#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a<0){ cout<<a-a*2; } else{ cout<<a; } return 0; }