8 条题解
-
312209水宇辰 (12209水宇辰) LV 9 @ 2021-10-24 12:38:43
12203沈宇阳 (12203沈宇阳) LV 7 @ 19 小时前
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d,e,f;
cin >> a;
b = a / 1000;
c = a / 100 % 10;
d = a / 10 % 10;
e = a % 10;
f = e * 1000 + d * 100 + c * 10+b;
cout <<a - f<< endl;
return 0;
} -
32021-10-23 17:30:32@
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d,e,f;
cin >> a;
b = a / 1000;
c = a / 100 % 10;
d = a / 10 % 10;
e = a % 10;
f = e * 1000 + d * 100 + c * 10+b;
cout <<a - f<< endl;
return 0;
} -
02021-10-31 10:24:40@
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d,e,f;
cin >> a;
b = a / 1000;
c = a / 100 % 10;
d = a / 10 % 10;
e = a % 10;
f = e * 1000 + d * 100 + c * 10+b;
cout <<a - f<< endl;
return 0;
} -
02021-10-25 09:48:43@
#include<iostream>
using namespace std;
int main()
{
int a,b,c,d,n;
cin>>n;
a=n/1000;
b=n/100%10;
c=n/10%10;
d=n%10;
cout<<n-(1000*d+100*c+10*b+a);
return 0;
} -
02021-10-25 09:48:14@
#include<iostream>
using namespace std;
int main()
{
int a,b,c,d,n;
cin>>n;
a=n/1000;
b=n/100%10;
c=n/10%10;
d=n%10;
cout<<n-(1000*d+100*c+10*b+a);
return 0;
} -
-12021-11-21 21:17:13@
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int a,b,c,d,e,f;
cin>>a;
b=a/1000;//4
c=(a-b*1000)/100;//3
d=(a-b*1000-c*100)/10;//2
e=a-b*1000-c*100-d*10;//1
f=1000*e+100*d+c*10+b;//
cout<<a-f;
return 0;
} -
-12021-11-16 10:38:01@
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d,e,f;
cin >> a;
b = a / 1000;
c = a / 100 % 10;
d = a / 10 % 10;
e = a % 10;
f = e * 1000 + d * 100 + c * 10+b;
cout <<a - f<< endl;
return 0;}
-
-12021-11-04 20:31:33@
#include<iostream>
using namespace std;
int main()
{
int a,b,c,d,n;
cin>>n;
a=n/1000;
b=n/100%10;
c=n/10%10;
d=n%10;
cout<<n-(1000*d+100*c+10*b+a);
return 0;
}
- 1
信息
- ID
- 1697
- 难度
- 1
- 分类
- (无)
- 标签
- 递交数
- 240
- 已通过
- 151
- 通过率
- 63%
- 被复制
- 4
- 上传者