duplicate certain lines _A_ by konn

k=gets.split;t=[*$<];k.each{|i|m=i.to_i-1;t[m]=[t[m],t[m]]};puts t.flatten

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

download

return top