fork download
  1. #!perl -p
  2. @l=qw(10 11);$_=$l[rand@l]^$l[rand@l],$_|=y//0/cr,@l=/1/?(@l,$_):map{$_.~~rand 2}@l for 1..$_;$_="@l"
Success #stdin #stdout 0s 6044KB
stdin
10
stdout
1010 1110 0100 1011 1100 1010 1000 0110 1100 0100