hiho week 182 register

Ended

Participants:171

Verdict:Accepted
Score:100 / 100
Submitted:2017-12-23 21:09:52

Lang:G++

Edit
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
#include <iostream>
#include <set>
#include <map>
using namespace std;
int main()
{
    int N,M;
    cin>>N;
    map<string,int>mp;
    string id,date;
    string price;
    for (int i = 0; i < N; ++i){
            cin>>M;
            set<string>st;
            while(M--){
                cin>>id>>date>>price;
                st.insert(id+price);
            }
            set<string>::iterator it = st.begin();
            for (it = st.begin(); it != st.end(); ++it){
                mp[*it]++;
            }
    }
    map<string,int>::iterator it ;
    for (it = mp.begin(); it != mp.end(); ++it){
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX