提交时间:2026-06-05 15:39:44

运行 ID: 90434

#include<bits/stdc++.h> using namespace std; int reverse(int n){ if(n<10) cout<<n; else{ cout<<n%10; reverse(n/10); } } int main(){ int x; cin>>x; reverse(x); return 0; }