diff -r 62389faa66e4 -r cd6b9fe4bce5 progs/roman_sol.scala --- a/progs/roman_sol.scala Wed Feb 01 13:54:55 2017 +0000 +++ b/progs/roman_sol.scala Thu Feb 02 13:18:02 2017 +0000 @@ -110,7 +110,7 @@ String2Int("MMVIII") // 2008 String2Int("MMXI") // 2011 -String2Int("MIM") // 1999 +String2Int("MIM") // 2001 String2Int("MCMLVI") // 1956 String2Int("III") // 3 @@ -152,6 +152,36 @@ addromanfile("roman.txt") +val ls = """IIII +IV +VI +IX +MCMLXXIX +MCMXLIV + +MDCLXI +MMMCMXCIX +XLVIII +MMVIII + +MMXI +MIM +MCMLVI + +III +XXX +CCC +MMM +VII +LXVI +CL +MCC +IV +IX +XC +MDCLXVI""".split("\n").map(_.trim).map(String2Int(_)).flatten + +String2Int("MIM") // Part 2 about Validation of Roman Numerals //===========================================