Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<map>
- #define F(X,x)for(auto&e:X){if(x.end()==x.find())x[e]=65+x.size();e=x[e];}
- auto i=[](auto a,auto b){std::map<int,int>c,d;F(a,c)F(b,d)return a==b;};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement