Romans

Design a function @romanos_a_int(rom)@ which, given a str @rom@ composed of ’IVXLCDM’ characters containing a well-spelled Roman numeral with a value lower than 4000, returns the equivalent numeric value.

Sample session

Problem information

Author: InfBesos

Generation: 2026-01-25T19:34:18.582Z

© Jutge.org, 2006–2026.
https://jutge.org