House of Santa Claus by H.Hiro

def s v;" "*v;end;b=$<.read.to_i/3;puts((a=(0...b)).map{|x|s(b-x)+"/#{s 2*x}\\"},"/#{'__'*b}\\",a.map{|x|"|#{s x}\\#{s 2*(b-x-1)}/#{s x}|"},(0...(b-1)).map{|x|"|#{v=s(b-x-1)}/#{s 2*x}\\#{v}|"},"|/#{'_'*(2*b-2)}\\|")

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

download

return top