Problem:
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
分析:
题目的要点在于罗马数字规则,见百度百科中罗马数字词条。
剩下的就是写出与规则对应的逻辑。
Problem:
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
分析:
题目的要点在于罗马数字规则,见百度百科中罗马数字词条。
剩下的就是写出与规则对应的逻辑。