LeetCode 12 Integer to Roman 题解
1.题目:
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
题意:
将整形转换为罗马字符串输出
2.解题思路:
跟转换进制一样的思路
3.代码
1 |
|
很高兴遇见你~
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
题意:
将整形转换为罗马字符串输出
跟转换进制一样的思路
1 |
|