p *(1..2e5).sort_by{|i|[i.to_s.tr('0','9').sum%48,i]}[0,?d]
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page