Olympic Scores

Problem Link

Solution by SaoriKidonotes only

Code / Notes

int main(){ 
    vector <int> x(5);
    
    cin >> x[0] >> x[1] >> x[2] >> x[3] >> x[4];
    sort(x.begin(),x.end());
    int f;
    cin >> f;
     int z= x[1]+x[2]+x[3];
     cout << z*f;
}

Last updated 15 hours, 27 minutes ago


« Back to problem