摘要:
const string roman[]={ "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", & 阅读全文
posted @ 2013-11-08 18:11
七年之后
阅读(173)
评论(0)
推荐(0)
摘要:
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.思考:罗马数字有I,V,X,L,C,D,M。其中4,9左减,其他右加。class Solution {public: string intToRoman(int num) { // IMPORTANT: Please reset any member data you declared, as // the same Solution instance... 阅读全文
posted @ 2013-11-08 11:45
七年之后
阅读(190)
评论(0)
推荐(0)
摘要:
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo... 阅读全文
posted @ 2013-11-08 00:52
七年之后
阅读(158)
评论(0)
推荐(0)

浙公网安备 33010602011771号