313 equals 151 by rotary-o

import java.util.*;enum M{M;System z;int f(String t){int i=0;for(int b:t.getBytes())i=i*9+t.indexOf(b);return i;}{for(Scanner s=new Scanner(z.in);z==z;){String t=s.next(),u=s.next();if(f(t)==f(u))z.out.println(t+" "+u);}}}

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page