Morass

Jos

Mar 1st, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. unordered_set<string> S;
  2. int main(void){
  3.     string s;
  4.     while(cin>>s)
  5.         if(S.count(s))cout<<"TAKEN\n";
  6.         else cout<<"OK",S.insert(s);
  7.     return 0;
  8. }
Add Comment
Please, Sign In to add comment