Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
79222 胡盛哲 15反转数字 C++ Accepted 0 MS 280 KB 235 2024-06-30 15:20:48

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; if(n<0){ cout << "-"; n = n*-1; } int r =0; while(n!=0){ int yu=n%10; r =r*10+yu; n/=10; } cout << r; return 0; }