Advertisement
momo2345

Registration system

Aug 6th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.89 KB | None | 0 0
  1.  
  2. // ********* Assalamualaikum****** IN the name of my Almighty****:):)***
  3. #include<bits/stdc++.h>
  4. using namespace std;
  5. #define suni ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
  6. #define endl "\n"
  7. #define f(i,a,b) for(int i=a;i< b;i++)
  8. #define ff(i,a,b) for(int i= a;i>=b;i--)
  9. #define T int t; cin >>t; while(t--)
  10. #define vi  vector<int>
  11. #define vll vector<long long>
  12. #define vs vector<string>
  13. #define vp vector<pair
  14. #define pii pair<int,int>
  15. #define pb push_back
  16. #define mk make_pair
  17. #define b(a) a.begin(),a.end()
  18. #define rb(a) a.rbegin(),a.rend()
  19. #define I  int
  20. #define ll long long
  21. #define st string
  22. #define C char
  23. #define mn int main()
  24. #define fa(u,v) for(auto u:v)
  25.  
  26. mn
  27. {
  28.     suni;
  29.       map<st,I>m;
  30.      
  31.       T
  32.     {
  33.         st s;
  34.         cin>>s;
  35.      //   m[s]=o;
  36.         if(m[s]==0) cout<<"OK"<<endl;
  37.         else cout<<s<<m[s]<<endl;
  38.         m[s]++;
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement