
描述
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999
分析
比Integer to Roman简单多了,是加法规则还是减法规则很好判断。
代码
Python
1 |
class (object): |

Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999
比Integer to Roman简单多了,是加法规则还是减法规则很好判断。
1 |
class (object): |
近期评论