expand text by Roy van Rijn

class h{public static void main(String[]a){try{int i=System.in.read()-48;System.in.read();int n,x;String s="";while((n=System.in.read())>13)s+=(char)n;char[]r=s.toCharArray();s="";for(n=0;n<i;n++){for(char c:r)for(x=0;x<i;x++)s+=(n>0&&n<i-1&&x>0&&x<i-1?" ":c);s+="\n";}System.out.print(s);}catch(Exception e){}}}

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

download

return to the top page