friend of a friend by rotary-o

import java.util.*;enum M{M;System z;{Map m=new LinkedHashMap();String t;for(Scanner s=new Scanner(z.in).useDelimiter("\\$|\n");s.hasNext();)m.put(t=s.next(),(m.get(t)==null?1:(Long)m.get(t))*s.nextLong(16));for(Object o:m.keySet())z.out.printf(o+"$%x\n",m.get(o));}}

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