uniq words by ebrahim

#include<algo.h>\x0d
#include<set.h>\x0d
int main(){set<std::string>s;for(std::string t;cin>>t;s.insert(t))if(!s.count(t))cout<<t+"\n";}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page