Sharkovskii order by murky-satyr

for(a=[];n=readline();a.push([n-b?-1e8*(9+b)-n:99-n,n]))b=n&-n
for(i in a.sort())print(a[i][1])

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

download

return to the top page