Advertisement
sajid161

5:1

Jan 1st, 2021
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5.     int n;
  6.     cin>>n;
  7.     vector< pair<string,string> >v(n);
  8.     for(int i=0;i<n;i++)
  9.     {
  10.         cin>>v[i].first>>v[i].second;
  11.     }
  12.     sort(v.begin(),v.end());
  13.     int sz=unique(v.begin(),v.end())-v.begin();
  14.     cout<<sz;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement