1234567891011121314151617181920 |
- //
- // Created by jal on 2019-04-01.
- //
- #include <bits/stdc++.h>
- using namespace std;
- int main(){
- double a[7];
- string name;
- while(cin >> a[0]){
- for(int i = 1; i < 7; i++){
- cin >> a[i];
- }
- cin >> name;
- sort(a, a+7);
- double s = a[1];
- for(int i = 2; i < 6; i++)s+=a[i];
- cout << name << " " << fixed << setprecision(2) <<s/5.0 << endl;
- }
- }
|