Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <cmath>
  2. #include <cstdio>
  3. #include <vector>
  4. #include <iostream>
  5. #include <map>
  6. #include <algorithm>
  7. using namespace std;
  8.  
  9.  
  10. int main() {
  11. map<string,int> m;
  12. string input;
  13. while(cin>>input){
  14. m[input]++;
  15. }
  16. for(auto const& i: m){
  17. if(i.second==1) cout<<i.first<<endl;
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement