Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74757 文 15反转数字 C++ Accepted 1 MS 272 KB 216 2024-05-25 23:59:00

Tests(10/10):


Code:

#include<iostream> using namespace std; /** * OJ - 1352 test */ int main(){ int n; cin>>n; int sum=0; int tmp; while(n) { tmp=n%10; sum=sum*10+tmp; n/=10; } cout<<sum; return 0; }