首页 > 其他 > 详细

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

时间:2016-08-01 00:20:57      阅读:358      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!