Advertisement
Guest User

Golfier

a guest
Oct 5th, 2017
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. #include<map>
  2. #define F(X,x)for(auto&e:X){if(x.end()==x.find())x[e]=65+x.size();e=x[e];}
  3. 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