提交时间:2026-04-10 15:47:18
运行 ID: 87054
#include <iostream> using namespace std; int main() { int n; cin >> n; int rev = 0; while (n > 0) { rev = rev * 10 + n % 10; n = n / 10; } cout << rev << endl; return 0; }