码迷,mamicode.com
首页 >  
搜索关键字:罗马    ( 901个结果
LeetCode Roman to Integer 罗马字符转数字 解题报告
LeetCode Roman to Integer 解题报告: 把一个字符串形式的罗马字符串转为数字。...
分类:其他好文   时间:2014-12-21 22:13:24    阅读次数:193
LeetCode--Roman to Integer
这个题目很简单,只是不了解数字与罗马数字转换关系的话就无从下手了。 题目: 原理与思路: 罗马数字有如下符号: 基本字符 I V X L C D M 对应阿拉伯数字 1 5 10 50 100 500 1000 计数规则: 相同的数字连写,所表示的数等于这些数字相加得到的数...
分类:其他好文   时间:2014-12-20 10:30:21    阅读次数:244
飘逸的柳絮凝于胸前
用罗马角斗士鞋款的战斗味儿去碰撞黑色百褶及踝长裙的优雅高贵,细褶裙摆的飘逸优雅还在,又从足尖蔓延出缕缕帅气 个性,让步履间多了更多自信。裙装与鞋款同色,让腿部线条得到延伸。无袖印花高腰连衣裙 饰品的夸张与衬衫的简洁相冲突,碰撞出中性掩饰下妖娆的女人味 性感的深V领设计,高腰设计拉长下身比例,简单大方...
分类:其他好文   时间:2014-12-19 23:16:12    阅读次数:188
Roman to Integer -- leetcode
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(string s) { int weight[26]; ...
分类:其他好文   时间:2014-12-19 14:30:53    阅读次数:160
Integer to Roman -- leetcode
Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. class Solution { public: string intToRoman(int num) { char symbol[] = {'I', ...
分类:其他好文   时间:2014-12-18 12:03:50    阅读次数:162
约瑟夫环
西方有个故事:相传著名历史学家Josephus(约瑟夫)经历了这么一段经历,在罗马人占领乔塔帕特后,40个犹太人和Josephus躲在一个山洞中。40个犹太人决定宁死也不被敌人抓到,于是决定集体自杀。大家经过讨论,决定了一个自杀方式,41个人围成一个圆圈,由第1个人开始报数,每报数到3的人就必须自杀,然后再由下一个人重新开始报数,知道所有人都自杀身亡为止。     然而Josephus并...
分类:其他好文   时间:2014-12-18 10:27:09    阅读次数:158
poj 2965 The Pilots Brothers' refrigerator
题目描述: 有一个4*4的矩阵,求最少次的操作,把这16个格子都变成‘-’,每次翻转(i,j)的时候,第i行,第j列也会变为相反的状态。解题思路: 话说条条大路通罗马,这个题目也有很多种方法,1:bfs+状态压缩,2:状态压缩+枚举,3:高斯消元。这些方法都可以,我在这里就说一下我的方法。 根...
分类:其他好文   时间:2014-12-15 10:21:05    阅读次数:247
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 V X L C D M 相应的阿拉...
分类:其他好文   时间:2014-12-12 16:40:50    阅读次数:188
极点郑码标点符号
aabd 标点 aabl 波浪 aadw 单位 *aafh 符号 aafs 分数 aahb 货币 aahk 黑块 aahx 虚线 aajt 箭头 aakh 括号 aald 罗马大写 aalx 罗马小写 aapk 扑克 aapy 拼音 ...
分类:其他好文   时间:2014-12-05 00:32:36    阅读次数:227
[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. 基本思路: 熟悉罗马数字和阿拉伯数字的转换规则,并找出规律。写出程序。 此题重点在提出规律。 阿拉伯数字到罗马数字的映射可以参考http://baike....
分类:其他好文   时间:2014-12-04 19:59:40    阅读次数:214
901条   上一页 1 ... 79 80 81 82 83 ... 91 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!