1 条题解

  • 0
    @ 2026-5-17 14:31:32
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int a, b, c, d;
        cin >> a >> b >> c >> d;
        int s = a + b + c + d;
        if(a == s - a){
            cout << "Yes";
            return 0;
        }
        if(b == s - b){
            cout << "Yes";
            return 0;
        }
        if(c == s - c){
            cout << "Yes";
            return 0;
        }
        if(d == s - d){
            cout << "Yes";
            return 0;
        }
        if(a + b == c + d){
            cout << "Yes";
            return 0;
        }
        if(a + c == b + d){
            cout << "Yes";
            return 0;
        }
        if(a + d == c + b){
            cout << "Yes";
            return 0;
        }
        else cout << "No";
    }
    • 1

    信息

    ID
    9337
    时间
    2000ms
    内存
    1024MiB
    难度
    5
    标签
    递交数
    32
    已通过
    16
    上传者