Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- #define op ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
- #define endl "\n"
- int main()
- {
- int n;
- cin>>n;
- /* int c=1;
- pair<string,string>p[15];
- for(int i=0;i<n;i++){
- //string s,t;
- //cin>>s>>t;
- cin>>p[i].first>>p[i].second;
- }
- sort(p,p+n);
- for(int i=1;i<n;i++){
- if(p[i-1]!=p[i]) c++;
- }
- cout<<c<<endl;*/
- 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 c=unique(v.begin(),v.end())-v.begin();
- cout<<c<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement