-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1157.cpp
executable file
·48 lines (41 loc) · 986 Bytes
/
1157.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
#include<iostream>
#include<sstream>
#include<fstream>
#include<string>
#include<algorithm>
#include<stdexcept>
#include<memory>
#include<vector>
#include<list>
#include<map>
#include<set>
#include<numeric>
// using namespace std;
// struct great{
// bool operator()(const pair<int,char>& a, const pair<int,char>& b){
// return a.first > b.first;
// }
// };
// int main(){
// string line;
// getline(cin,line);
// for(auto p = line.begin(); p!= line.end();++p){
// *p = toupper(*p);
// }
// map<char,int> characters;
// for(auto p:line){
// ++characters[p];
// }
// vector<pair<int,char>> sorted_count;
// for(auto p:characters){
// pair<int,char> count(p.second,p.first);
// sorted_count.push_back(count);
// }
// sort(sorted_count.begin(),sorted_count.end(),great());
// if(sorted_count[0].first == sorted_count[1].first){
// cout << '?' << '\n';
// }
// else{
// cout << sorted_count[0].second << '\n';
// }
// }