[LeetCode]Roman to Integer...
分类:
其他好文 时间:
2014-07-03 16:45:05
阅读次数:
178
[LeetCode]Reverse Integer...
分类:
其他好文 时间:
2014-07-03 16:36:33
阅读次数:
121
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.int key[]={1000, 900, 500, 400, 100,90, 50, ...
分类:
其他好文 时间:
2014-07-03 12:06:47
阅读次数:
186
Given two sorted integer arrays A and B, merge B into A as one sorted array.
分类:
其他好文 时间:
2014-07-02 21:07:20
阅读次数:
149
#if defined(__CHAR_UNSIGNED__) || defined(__sgi) #define INT1 signed char /* integer, signed 1 Byte */#define INT1_MIN SCHAR_MIN...
分类:
其他好文 时间:
2014-07-02 19:19:04
阅读次数:
346
procedure TMainForm.openForm(Caption, FormClassName: string);var i: integer; sheet: TUniTabSheet;begin for i := 0 to page.PageCount - 1 do begin ...
分类:
其他好文 时间:
2014-07-02 18:48:09
阅读次数:
224
题目链接:uva 1069 - Always an integer
题目大意:给出一个多次多项式,问说是否对于任意正整数n来说结构均为整数。
解题思路:首先处理出字符串,然后枚举n从1到k+1判断即可,k为多项式中出现过的最大幂数指。
P为多项式,d为除数,k为多项式中最大的次数
当k=0时,P中不存在n变量,所以直接计算判断即可当k=1时,P是一次多项式,那么P(n+...
分类:
其他好文 时间:
2014-07-02 09:45:48
阅读次数:
294
Division
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 999999/400000 K (Java/Others)
Total Submission(s): 2676 Accepted Submission(s): 1056
Problem Description
Little D is re...
分类:
其他好文 时间:
2014-07-02 08:52:54
阅读次数:
133
1069 - Always an integer...
分类:
其他好文 时间:
2014-07-02 08:12:34
阅读次数:
198
【题目】
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /. Each operand may be an integer or another expression.
Some examples:
["2", "1", "+", "3", "*"] -> ((2 + 1) * 3) -> 9
["4", "13", "5", "/...
分类:
其他好文 时间:
2014-07-02 07:43:36
阅读次数:
212