13 Roman to Integer链接:https://leetcode.com/problems/roman-to-integer/
问题描述:
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Hide Tags Math St...
分类:
其他好文 时间:
2015-06-18 09:47:10
阅读次数:
167
12 Integer to Roman链接:https://leetcode.com/problems/integer-to-roman/
问题描述:
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Hide Tags Math St...
分类:
其他好文 时间:
2015-06-18 09:45:27
阅读次数:
170
Large Division
Description
Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only if
there exi...
分类:
其他好文 时间:
2015-06-18 09:44:38
阅读次数:
127
Hibernate主键生成策略:http://www.cnblogs.com/flyoung2008/articles/2165759.html一般自增主键(Integer)映射方式: String(字符串)为主键的映射方式:
分类:
Web程序 时间:
2015-06-18 00:45:02
阅读次数:
134
题目意思:罗马数字转int思路:字符串从最后一位开始读,IV:+5-1 1 class Solution { 2 public: 3 int romanToInt(string s) { 4 map mymap; 5 mymap['I']=1; 6 ...
分类:
其他好文 时间:
2015-06-17 23:00:27
阅读次数:
134
For a positive integer N , the digit-sum of N is defined as the sum of N itself and its digits. When M is the digitsum of N , we call N a generator of M .For example, the digit-sum of 245 is 256 (= 245...
分类:
其他好文 时间:
2015-06-17 21:40:45
阅读次数:
220
Distinct powers
Problem 29
Consider all integer combinations of ab for 2 ≤ a ≤ 5 and 2 ≤ b ≤ 5:
22=4, 23=8, 24=16, 25=32
32=9, 33=27, 34=81, 35=243
42=16, 43=64, 44=256, 45=1024
52=25, 5...
分类:
编程语言 时间:
2015-06-17 21:36:18
阅读次数:
220
题意:回文数字。原题来自:https://leetcode.com/problems/reverse-integer/分析:根据题目要求,Reverse digits of an integer.我理解为int的范围了,结果,这题很坑。最先wa的时候,我还以为int范围小了,就用long long,...
分类:
其他好文 时间:
2015-06-17 21:27:48
阅读次数:
146
在设计或者打印预览时,如果设置了FileName,可能反而出错。procedure TfrxReport.ShowPreparedReport;var WndExStyles: Integer;begin FPreviewForm := nil; if FPreview nil then ...
分类:
其他好文 时间:
2015-06-17 21:25:36
阅读次数:
151
题目意思:1-3999转罗马数字思路:从大往小减 ps:这题有点蛋疼 1 class Solution { 2 public: 3 string intToRoman(int num) { 4 string a[]={"I","IV","V","IX","X","XL","...
分类:
其他好文 时间:
2015-06-17 21:20:36
阅读次数:
121