Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Reverse Roman Numerals by krzysztof.gonda
def reverse_roman(data):
now = 0
past = 0
wynik = 0
for i in range(0,len(data)):
if(data[i] == 'I'):
now = 1
if(data[i] == 'V'):
now = 5
if(data[i] == 'X'):
now = 10
if(data[i] == 'L'):
now = 50
if(data[i] == 'C'):
now = 100
if(data[i] == 'D'):
now = 500
if(data[i] == 'M'):
now = 1000
if(i == 0):
past = now
else:
if(past
Nov. 29, 2017