Bead Sort by 0mg(clock)

for(b="";r=readline();b+=r+"\n")for(i in b)b=b.replace(RegExp("(\\w)([^]{"+r.length+"})\\|"),'|$2$1');print(b)

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

download

return to the top page