Selecting Subjects (AOJ 0619) by ynu_d
Contest: 3421    RunID: 2277098    Status: Compile Error    Date: Sun Apr 23 15:57:37 JST 2017


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

int main(){
    int a,b,c,d,e,f;
    cin >>a>>b>>c>>d>>e>>f;
    score[]={a,b,c,d};
    sort(score.begin(),score.end())
    score2[]={e,f};
    sort(score2.begin(),score2.end())
    cout <<score[1]+score[2]+score[3]+score2[1]<<endl;
    
    return 0;
}