提交时间:2023-11-13 21:15:10

运行 ID: 31058

#include <bits/stdc++.h> using namespace std; int main() { long long n, s = 0; cin >> n; while (n) { s = s * 10 + n % 10; n /= 10; } cout << s; return 0; }