Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
42566 | 惠子铭 | 倒序数 | C++ | Accepted | 0 MS | 256 KB | 202 | 2024-03-01 16:00:31 |
#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; }