Japanese numeral for Ruby kaigi by murky-satyr

for(;l=readline(q=v=0);print(v+q))for(i=-1;c=l[i+=3];q=/\x99|\x8d/(l[i-1])?!(x=p?~p?1e3:10:100,v+=q*x||x):p)p='\xbe\x80\x8c\x89\x9b\x94\xad\x83\xab\x9d'.search(c)

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

download

return to the top page