-
Notifications
You must be signed in to change notification settings - Fork 0
/
4344.cpp
executable file
·43 lines (39 loc) · 873 Bytes
/
4344.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include<iostream>
#include<sstream>
#include<fstream>
#include<string>
#include<algorithm>
#include<stdexcept>
#include<memory>
#include<vector>
#include<numeric>
using namespace std;
// int main(){
// int n;
// cin >> n;
// cin.ignore();
// while(n){
// string line;
// getline(cin,line);
// istringstream iss{line};
// int num = 0;
// iss >> num;
// vector<int>points;
// int point = 0;
// while(iss >> point){
// points.push_back(point);
// }
// double average = accumulate(points.begin(),points.end(),0)/points.size();
// double count = 0;
// for(auto point: points){
// if(point > average){
// count += 1;
// }
// }
// double ratio = count / points.size() * 100;
// cout << fixed;
// cout.precision(3);
// cout << ratio << '%'<<'\n';
// --n;
// }
// }