3 条题解
-
112337陈子函 (12337陈子函) LV 8 @ 2021-11-03 20:11:02
#include<iostream>
using namespace std;
int main( )
{
int n,x,y=0;
cin>>n;
for(x=n;x!=0;x=x/10)
{
y=y*10+x%10;
}
cout<<y<<endl;
return 0;
}
最简便 -
-42021-11-01 16:28:17@
#include<iostream>
#include<cmath>
using namespace std;
int main( )
{
int a,s,d,f;
cin>>a;
s=a/100;
d=a%100/10;
f=a%10;
cout<<100*f+10*d+s<<endl;
return 0;
} -
-42021-10-25 09:27:24@
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int n;
int a,b,c;
cin>>n;
a=n/100;
b=n%100/10;
c=n%10;
cout<<c<<b<<a<<endl;
return 0;
}
- 1
信息
- ID
- 1696
- 难度
- 5
- 分类
- (无)
- 标签
- 递交数
- 316
- 已通过
- 118
- 通过率
- 37%
- 被复制
- 3
- 上传者