Shapeshifting fractal by rotary-o

import java.util.*;enum M{M;System z;{int i,j,k,l=1;String[]a={"#"},b;for(Scanner s=new Scanner(z.in);(i=l*s.nextInt())>0;l=i,a=b)for(j=-l,k=0,b=new String[i];j<i;j+=l)for(char c:s.nextLine().toCharArray())for(String t:a)b[j+k++%l]+=t.replace('#',c);for(String t:a)z.out.println(t.replace("null",""));}}

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