-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path7568.cpp
executable file
·63 lines (59 loc) · 1.42 KB
/
7568.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// #include<iostream>
// #include<sstream>
// #include<fstream>
// #include<string>
// #include<algorithm>
// #include<cmath>
// #include<stdexcept>
// #include<memory>
// #include<vector>
// #include<list>
// #include<map>
// #include<set>
// #include<numeric>
// using namespace std;
// bool bigger(pair<int,int>a, pair<int,int>b){
// if(a.first > b.first && a.second > b.second){
// return true;
// }
// return false;
// }
// int main(){
// int n;
// cin >> n;
// vector<pair<int,int>> peoples;
// while(n>0){
// int height;
// int weight;
// cin >> weight >> height;
// peoples.push_back(pair<int,int>(weight,height));
// --n;
// }
// // vector<pair<int,int>> sorted_people;
// // sorted_people = peoples;
// // sort(sorted_people.begin(),sorted_people.end(),bigger);
// // cout << '\n';
// // for(auto p: sorted_people){
// // cout << p.first << ' ' << p.second << '\n';
// // }
// auto it = peoples.begin();
// while(it!=peoples.end()){
// int rank = 1;
// int cnt = 0;
// for(auto p = peoples.begin();p!=peoples.end();++p){
// if(p==it){
// continue;
// }
// if(it->first > p->first && it->second > p->second){
// continue;
// }else if(it->first < p->first && it->second < p->second){
// ++rank;
// cnt = 0;
// }else{
// // cnt ++;
// }
// }
// ++it;
// cout << rank << '\n';
// }
// }