Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int n;
- cin>>n;
- vector< pair<string,string> >v(n);
- for(int i=0;i<n;i++)
- {
- cin>>v[i].first>>v[i].second;
- }
- sort(v.begin(),v.end());
- int sz=unique(v.begin(),v.end())-v.begin();
- cout<<sz;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement