Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cmath>
- #include <cstdio>
- #include <vector>
- #include <iostream>
- #include <map>
- #include <algorithm>
- using namespace std;
- int main() {
- map<string,int> m;
- string input;
- while(cin>>input){
- m[input]++;
- }
- for(auto const& i: m){
- if(i.second==1) cout<<i.first<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement