House of Santa Claus by n

i=(gets.to_i-1)/3;s="";i.times{|j|p=" "*(i-j-1);k=p+"a"+"b"*j*2+"c";puts " "+k.tr("bac"," /\\");k="|"+k+p+"|
";s=k.tr("bca"," /\\")+s+k.tr("bac",i==j+1?"_/\\":" /\\")};$><<"/"+"_"*i*2+"\\
"+s

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

download

return top