27c3_Generate C by merry_x_mas

n=gets.to_i\x0d
a="  ##"\x0d
b=" #  "\x0d
c="#   "\x0d
d="\n"\x0d
e=" "\x0d
puts e+a*n+d+(b*n).rstrip+d+((c*n).rstrip+d)*3+(b*n).rstrip+d+e+(a*n)

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

download

return to the top page