2 条题解

  • 0
    @ 2024-11-5 10:37:33

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

    int judge(int x) { if(x>=100) return x%100; else return x; }

    int main() { int A,B;

    cin>>A>>B;
    
    int ans;
    
    ans=judge(judge(A)+judge(B));
    
    cout<<ans;
    
    return 0;
    

    }

    这个判断方法都是一样的 加了个函数 方便一点

    信息

    ID
    248
    时间
    1000ms
    内存
    256MiB
    难度
    1
    标签
    递交数
    216
    已通过
    151
    上传者