Advertisement
Ahmed_Negm

Untitled

Apr 27th, 2022
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.53 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. #include<iostream>
  3. #include<cmath>
  4. #include<iomanip>
  5. #include<algorithm>
  6. #include<cstdlib>
  7. #include<cstring>
  8. #include<vector>
  9. #include<utility>
  10. using namespace std;
  11.  
  12. #define ll long long
  13. #define nl '\n'
  14. #define sz(x) int(x.size())
  15. #define all(x) x.begin(),x.end()
  16. #define rall(s)  s.rbegin(), s.rend()
  17. #define ceill(n, m) (((n) / (m)) + ((n) % (m) ? 1 : 0))
  18. /*
  19. ███╗░░██╗███████╗░██████╗░███╗░░░███╗
  20. ████╗░██║██╔════╝██╔════╝░████╗░████║
  21. ██╔██╗██║█████╗░░██║░░██╗░██╔████╔██║
  22. ██║╚████║██╔══╝░░██║░░╚██╗██║╚██╔╝██║
  23. ██║░╚███║███████╗╚██████╔╝██║░╚═╝░██║
  24. ╚═╝░░╚══╝╚══════╝░╚═════╝░╚═╝░░░░░╚═╝
  25.  
  26. */
  27.  
  28. void Fast_IO(){
  29.     ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
  30.     #ifndef ONLINE_JUDGE
  31.         freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
  32.     #endif
  33. }
  34.  
  35.  
  36.  
  37.  
  38.  
  39. void solve(){
  40.   ll n; cin>>n;
  41. set<string>st;  
  42. string s;
  43. for(int i=0; i<n; i++){
  44. getline(cin,s);
  45. st.insert(s);
  46. }
  47. cout<<sz(st);
  48.  
  49.  
  50.  
  51.  
  52.  
  53. }
  54.  
  55. int main(){
  56.     Fast_IO();
  57. int t =1;
  58. // cin>>t;
  59. while(t--){
  60. solve();
  61. }
  62. return 0;
  63. }  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement