hexagon 2nd fixed by Patashu

class A{static{try{for(int i=0,j,z=System.in.read()&7,k=z*6-2;i<k;i++){for(j=0;j<(j<k?3*Math.min(z+i,k*5/6f-i):0);)System.out.print(" \\__/ ".charAt(j++>3*Math.max(z-i-1,i-3*z)?(i*3+j)%6:5));System.out.println();}}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