Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134722 陈华仁星 求绝对值 C++ Accepted 1 MS 268 KB 177 2025-11-01 12:00:05

Tests(2/2):


Code:

#include <iostream> #include <cmath> using namespace std; int main() { int n; scanf("%d",&n); if(n>=0) printf("%d",n); else printf("%d",abs(n)); return 0; }