[ create a new paste ] login | about

Link: http://codepad.org/NQQLL1b5    [ raw code | fork ]

d3m3vilurr - Python, pasted on May 16:
1
2
3
s=p=0
for x in raw_input():z='IVXLCDM'.find(x);x=10**(z/2)*(1,5)[z%2];s+=(x,x-p-p)[p<x];p=x
print s


Create a new paste based on this one


Comments: