0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-24 03:31:59 +00:00

P1307 [NOIP2011 普及组] 数字反转

R63286206
This commit is contained in:
Baoshuo Ren 2021-11-21 16:36:43 +08:00 committed by Baoshuo Ren
parent 6100a26801
commit 63b865495c
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

15
Luogu/P1307/P1307.cpp Normal file
View File

@ -0,0 +1,15 @@
#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;
}