diff --git a/Luogu/P1307/P1307.cpp b/Luogu/P1307/P1307.cpp new file mode 100644 index 00000000..fb6cbae6 --- /dev/null +++ b/Luogu/P1307/P1307.cpp @@ -0,0 +1,15 @@ +#include + +using namespace std; + +int n, s; + +int main() { + cin >> n; + while (n) { + s = s * 10 + n % 10; + n /= 10; + } + cout << s << endl; + return 0; +}