Roman numeral by inaniwa(another)

s;c;main(a){for(;read(0,&c,1);s=a?s+a-s%a*2:!printf("%d\n",s))a=atoi(index("I1V5X10L50C100D500M1000\n",c)+1);}

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

download

return to the top page