码迷,mamicode.com
首页 >  
搜索关键字:罗马数字    ( 376个结果
计蒜客 挑战难题 整数转换成罗马数字
给定一个整数num,( 1<=num<=3999),将整数转换成罗马数字。 如1,2,3,4,5对应的罗马数字分别位I,II,III,IV,V等。 格式: 第一行输入一个整数,接下来输出对应的罗马数字。 提示: 罗马数字的常识见此链接,对做题有帮助哦~尤其是表示方法。 http://baike.ba ...
分类:其他好文   时间:2016-08-26 13:31:36    阅读次数:124
TYVJ P1070 罗马数字 Label:一定要看的模拟
描述 一类书的序言是以罗马数字标页码的。传统罗马数字用单个字母表示特定的数值,以下是标准数字表: I 1 L 50 M 1000V 5 C 100X 10 D 500最多3个同样的可以表示为10n的数字(I,X,C,M)可以连续放在一起,表示它们的和: III=3CCC=300可表示为5x10n的字 ...
分类:其他好文   时间:2016-08-23 20:27:48    阅读次数:237
leetCode 12. Integer to Roman | 字符串 | Medium
12.IntegertoRomanGivenaninteger,convertittoaromannumeral.Inputisguaranteedtobewithintherangefrom1to3999.题目大意:将一个给定的阿拉伯数字转换成罗马数字。思路:这题看到的时候,想的太多。其实很简单,将千位,百位,十位,个位都表示出来,然后组合即可。代码如下:c..
分类:其他好文   时间:2016-08-19 22:36:11    阅读次数:185
[LeetCode] NO.13 Roman to Integer
[题目] Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. [题目解析] 这道题很关键的是要理解罗马数字的几个主要的代表符号和表示方式 ...
分类:其他好文   时间:2016-08-18 23:24:29    阅读次数:175
leetcode修炼之路——13. Roman to Integer
题目: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 题目分析: 将罗马数字转换成阿拉伯数字,规则如下:罗马数字共有七个,即I(1 ...
分类:其他好文   时间:2016-08-18 01:06:47    阅读次数:164
leetCode 13. Roman to Integer 字符串
13.RomantoIntegerGivenaromannumeral,convertittoaninteger.Inputisguaranteedtobewithintherangefrom1to3999.补充:罗马数字罗马数字共有七个,即I(1),V(5),X(10),L(50),C(100),D(500),M(1000)。按照下面的规则可以表示任意正整数。重复数次:一个罗马数字重复几次,就..
分类:其他好文   时间:2016-08-10 23:10:53    阅读次数:232
Leetcode13 Roman to Integer
题意: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 分析: 开始准备采用将罗马数字的字符串先划分千位,百位等,但是实际操作起来代 ...
分类:其他好文   时间:2016-08-08 22:48:41    阅读次数:173
[LintCode] Integer to Roman 整数转化成罗马数字
Given an integer, convert it to a roman numeral. The number is guaranteed to be within the range from 1 to 3999. Given an integer, convert it to a rom ...
分类:其他好文   时间:2016-08-01 10:28:50    阅读次数:182
[LintCode] Roman to Integer 罗马数字转化成整数
Given a roman numeral, convert it to an integer. The answer is guaranteed to be within the range from 1 to 3999. Have you met this question in a real ...
分类:其他好文   时间:2016-08-01 00:23:46    阅读次数:161
罗马数字转化
IV=4 6=VI ...
分类:其他好文   时间:2016-07-22 14:24:59    阅读次数:153
376条   上一页 1 ... 19 20 21 22 23 ... 38 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!