Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
104760 | 江梵睿 | 15反转数字 | C++ | Accepted | 1 MS | 272 KB | 390 | 2025-01-10 19:10:18 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int i=0,a,k=0; cin>>a; while(a!=0){ k*=10; k+=a%10; a/=10; } cout<<k; return 0; }