5 条题解
-
1Infinity_ LV 8 @ 2024-08-02 11:36:04
#include<iostream> using namespace std; int main(){ int n; cin >> n; cout << n/100 + 10*(n/10%10) + 100*(n%10); return 0; }
-
12021-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;
}
最简便 -
02024-07-05 10:03:24@
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d;
cin>>a;
b=a%10;
c=(a/10)%10;
d=a/100;
cout<<b*100+c*10+d;
return 0;
} -
-52021-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;
} -
-52021-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
- 分类
- (无)
- 标签
- 递交数
- 380
- 已通过
- 142
- 通过率
- 37%
- 被复制
- 3
- 上传者