码迷,mamicode.com
首页 >  
搜索关键字:roman    ( 1299个结果
Leetcode Integer to Roman
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.对于这道题,要把罗马数字中的几个特殊的数字保存到一张表中,如,4,5,9,10等,然后开...
分类:其他好文   时间:2015-02-24 13:47:56    阅读次数:155
leetcode------Integer to Roman
标题:Integer to Roman通过率:34.4%难度:中等Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.前面做过数字转罗马数字...
分类:其他好文   时间:2015-02-11 16:04:41    阅读次数:143
Objective-C是什么?关于Objective-C的一些语法
{\rtf1\ansi\ansicpg936\cocoartf1344\cocoasubrtf720 {\fonttbl\f0\froman\fcharset0 Times-Roman;\f1\fnil\fcharset134 STSongti-SC-Regular;} {\colortbl;\re...
分类:其他好文   时间:2015-02-10 20:05:48    阅读次数:238
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.public class Solution { public String int...
分类:其他好文   时间:2015-02-10 14:48:34    阅读次数:131
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.class Solution {public: int romanToInt(st...
分类:其他好文   时间:2015-02-10 14:39:57    阅读次数:111
LeetCode 013 Roman to Integer
题目描述:Roman to IntegerGiven a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.分析:① 输入为VII,则数字为V + I +...
分类:其他好文   时间:2015-02-07 15:50:36    阅读次数:150
LeetCode 012 Integer to Roman
题目描述:Integer to RomanGiven an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.罗马数字的计数方法:基本字符IVXLCDM相应...
分类:其他好文   时间:2015-02-07 15:41:19    阅读次数:145
Roman to Integer
题目描述:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 这道题很简单,我就直接贴答案了。solution1:int romanTo....
分类:其他好文   时间:2015-02-06 23:10:02    阅读次数:136
Integer to Roman
题目描述:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999. 这道题我必须炫一下,因为提交一次就成功了,而且代码很赞。solution:....
分类:其他好文   时间:2015-02-06 09:26:04    阅读次数:160
[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.思路:从各位向前处理,当前字符代表的数比后面一位字符代表的数大(包括等于),就加,小就减...
分类:其他好文   时间:2015-02-05 18:19:42    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!