码迷,mamicode.com
首页 > 其他好文 > 详细

[LintCode] Roman to Integer 罗马数字转化成整数

时间:2016-08-01 00:23:46      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:

 

Given a roman numeral, convert it to an integer.

The answer is guaranteed to be within the range from 1 to 3999.

Example

IV -> 4

XII -> 12

XXI -> 21

XCIX -> 99

 

s

 

[LintCode] Roman to Integer 罗马数字转化成整数

标签:

原文地址:http://www.cnblogs.com/grandyang/p/5724219.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!