include <bits/stdc++.h> using namespace std; int n, s=0; int main() { cin >> n; while (n) { s=s*10+n%10; n/=10; } cout << s; return 0; }
By signing up a HFOJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your HFOJ universal account