Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
23906 | LeoWang | 倒序数 | C++ | Accepted | 0 MS | 240 KB | 198 | 2023-08-01 23:43:06 |
#include<bits/stdc++.h> using namespace std; void abab(int n) { if(n<10){ cout<<n; return; } cout<<n%10; abab(n/10); } int main() { int a; cin>>a; abab(a); return 0; }