0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-11 20:06:27 +00:00
OI-codes/Luogu/P1307/P1307.cpp

16 lines
193 B
C++
Raw Normal View History

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