Christmas Decorations FIXED by nn

System.in.eachLine{a=''
4.times{n->(it=~/[^,\d]*(\d*)[^,]+/).each{v->(v[1]?v[1].toLong():1).times{i=0
'ng dd sn tr car dl'.split().each{v=~"(?i)$it"?a+=(' o 0  _  0 __ 0  /\\  0      0 )) 0/:\\0 o.o 0(oo)0 /,,\\ 0  __  0((.)0\\:/0=(.)=0(~~)0/,,,,\\0_/_L\\_0 || 0 ^ 0 ! ! 0/__\\0  ||  0o----o0 || '=~/\D+/)[i+6*n]+' ':i++}}}
a+='\n'}
println a}

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

download

return to the top page