Japanese numeral for Ruby kaigi by uru

#!ruby -n\x0d
a=%w(\xe5\x8d\x83 \xe7\x99\xbe \xe5\x8d\x81 \xe4\xb9\x9d \xe5\x85\xab \xe4\xb8\x83 \xe5\x85\xad \xe4\xba\x94 \xe5\x9b\x9b \xe4\xb8\x89 \xe4\xba\x8c \xe4\xb8\x80 1 2* 3* 4* 5* 6* 7* 8* 9* 10+ 100+ 1000+);12.times{|i|$_.gsub!(a[i],a[~i])};p eval($_.sub(/[*+]$/,''))

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

download

return to the top page