delete pics to save space
This commit is contained in:
21
history_source/信息学奥赛一本通/1.6.2.3t.cpp
Normal file
21
history_source/信息学奥赛一本通/1.6.2.3t.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
int fan(int n)
|
||||
{
|
||||
int ans=0;
|
||||
do
|
||||
{
|
||||
ans=ans*10+n%10;
|
||||
n/=10;
|
||||
}
|
||||
while(n);
|
||||
return ans;
|
||||
}
|
||||
int main()
|
||||
{
|
||||
int n;
|
||||
scanf("%d",&n);
|
||||
printf("%d\n",fan(n));
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user