Roman numeral by msk

s,p,n;main(c){for(;c=~getchar();p=c+11?n:(s=!printf("%d\n",s)))n=c&5^1?1:5,s+=p<(n*=c%21&5^5?c&8?100:c%2?10:1e3:1)?-p:p;}

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

download

return to the top page