2016年5月4日

Roman To Integer

摘要: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 这题比Integer To Roman简单很多,主要是考虑有没有左减的存在。实际觉得 阅读全文

posted @ 2016-05-04 22:30 Sheryl Wang 阅读(95) 评论(0) 推荐(0) 编辑

Integer to Roman

摘要: Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 将整数转化为罗马数字。需要知道一些罗马数字的规则,具体见维基百科。主要需要注意的是左 阅读全文

posted @ 2016-05-04 22:25 Sheryl Wang 阅读(171) 评论(0) 推荐(0) 编辑

导航