摘要: 题意: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 分析: 开始准备采用将罗马数字的字符串先划分千位,百位等,但是实际操作起来代 阅读全文
posted @ 2016-08-08 22:01 wangxiaobao1114 阅读(182) 评论(0) 推荐(0)
摘要: 题意: Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 分析: 题目其实不难,但是需要先了解罗马数字的组成规则。 摘录百度百科如下: 阅读全文
posted @ 2016-08-08 21:56 wangxiaobao1114 阅读(205) 评论(0) 推荐(0)