Rectangle (AOJ 0345) by ynu_b
Contest: 3420    RunID: 2277129    Status: Compile Error    Date: Sun Apr 23 16:11:37 JST 2017


#include <iostream>
#include <bits/stdc++.h>
using namespace std;
    int main(void){
        int number[4];
        for(int i = 0; i < 4; i++){
            cin >> number[i];
        }
        sort(number, number + 4);
        if((number[0] == number[1]) && (number[2] == number[3])){
            cout << "yes" << endl;
        }else{
            cout << "no" << endl;
        }
        return 0;   
    }