2 条题解

  • 0
    @ 2023-2-1 20:04:27

    #include<bits/stdc++.h> using namespace std;

    int main(){
        int a,b,c,d,e,m,k;
        cin>>m>>k;
        a=m/10000;
        b=m/1000%10;
        c=m/100%10;
        d=m/10%10;
        e=m%10;
        a+=k;
        cout<<e*10000+d*1000+c*100+b*10+a;
    }
    

    信息

    ID
    883
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    173
    已通过
    81
    上传者