8 条题解

  • 3

    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;
    }

  • 3

    #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;
    }

  • 0

    #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;
    }

  • 0

    #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;
    }

  • 0

    #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
    @ 2021-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;
    }

  • -1
    @ 2021-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;

    }

  • -1

    #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
上传者