题解 | 数字颠倒
#include <algorithm>
#include <iostream>
#include <numeric>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
string a = to_string(n);
reverse(a.begin(), a.end());
cout << a;
}
// 64 位输出请用 printf("%lld")

