码迷,mamicode.com
首页 >  
搜索关键字:罗马数字    ( 376个结果
[LeetCode] 12. Integer to Roman ☆☆
Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 解释: 罗马数字采用七个罗马字母作数字、即Ⅰ(1)、X(10)、C(100)、M(1 ...
分类:其他好文   时间:2017-02-15 23:51:32    阅读次数:355
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.public class Solution { public int RomanChar... ...
分类:其他好文   时间:2017-01-11 07:47:10    阅读次数:152
列表和表格---学习笔记02
第7章 列表和表格 7.1 有序列表 <ol type="A"> <li>这里是第1个li</li> <li>这里是第2个li</li> <li>这里是第3个li</li> </ol> ol属性: type : 数字(1),大小写字母(A,a),大小写罗马数字(I,i) start: "起始编号位序 ...
分类:其他好文   时间:2017-01-09 23:53:52    阅读次数:397
[leetcode] 12. Integer to Roman
关于罗马数字: I: 1V: 5X: 10L: 50C: 100D: 500M: 1000字母可以重复,但不超过三次,当需要超过三次时,用与下一位的组合表示:I: 1, II: 2, III: 3, IV: 4C: 100, CC: 200, CCC: 300, CD: 400 提取每一位digit ...
分类:其他好文   时间:2016-12-27 09:46:40    阅读次数:190
【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. 题意:把罗马数字转变为数字 ...
分类:其他好文   时间:2016-12-22 13:57:37    阅读次数:150
【LeetCode】12. Integer to Roman
Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 题意:把数字转换为罗马数字 感觉用c的话太麻烦了,所以用Python写了 ...
分类:其他好文   时间:2016-12-22 06:49:00    阅读次数:137
Leetcode 13. Roman to Integer C语言
Givenaromannumeral,convertittoaninteger. Inputisguaranteedtobewithintherangefrom1to3999.罗马数字与整数互转intgetInt(charc){ inttemp; switch(c){ case‘I‘:return1; case‘V‘:return5; case‘X‘:return10; case‘L‘:return50; case‘C‘:return100; case‘D‘:return500; case‘..
分类:编程语言   时间:2016-12-20 07:55:22    阅读次数:274
Leetcode 题目整理-3 Palindrome Number & Roman to Integer
9. Palindrome Number Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative int ...
分类:其他好文   时间:2016-12-11 17:52:18    阅读次数:239
Leetcode 题目整理-3
9. Palindrome Number Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative int... ...
分类:其他好文   时间:2016-12-11 10:28:59    阅读次数:221
[LeetCode]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-12-09 00:44:36    阅读次数:165
376条   上一页 1 ... 17 18 19 20 21 ... 38 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!