find anagrams by kazuki

using c=System.Console;class A{static void Main(){int s=-1,t;for(string l;(l=c.ReadLine())!=null;s=s<0?t:s){t=0;foreach(char x in l)t|=1<<x-65;if(s==t)c.WriteLine(l);}}}

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

download

return to the top page