题目:
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
翻译:把罗马转为数字
思路:如果是单纯的一个罗马字母比较好处理,但是对于4,9这样的,应该看它下一个字符代表的数字是不是比他大,要是大的话减去当前的字符...
分类:
其他好文 时间:
2015-04-22 15:25:50
阅读次数:
169
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 5364
Accepted: 1456
Description
Given a number of distinct decimal digits, you can form one integer by choosing a non-...
分类:
其他好文 时间:
2015-04-22 15:16:23
阅读次数:
143
表结构 存储过程 CREATE OR REPLACE PROCEDURE TEST3(TID IN INTEGER,O OUT SYS_REFCURSOR)
AS
BEGIN
IF(TID>0) THEN
OPEN O FOR SELECT * FROM XHSCK.T_ADMINISTRATIVE_LEVEL T WHERE T.ADMINISTRATIVE...
分类:
数据库 时间:
2015-04-22 14:08:17
阅读次数:
154
题意:
Write an algorithm to determine if a number is "happy".
A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of th...
分类:
移动开发 时间:
2015-04-22 13:56:15
阅读次数:
155
Happy Number
Write an algorithm to determine if a number is "happy".
A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the ...
分类:
移动开发 时间:
2015-04-22 13:55:28
阅读次数:
141
题目:
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
翻译:
给一个整数,把他转换为罗马数字输出。
这道题是简单的字符转换的问题。只要了解罗马数字代表的含义即可。
罗马数字里面只有 1,5,10...
分类:
其他好文 时间:
2015-04-22 13:53:46
阅读次数:
112
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:
移动开发 时间:
2015-04-22 13:20:50
阅读次数:
104
包装类(Wrapper Class):针对于原生数据类型的包装。所有的包装类(8 个)都位于java.lang 包下。Java 中的 8 个包装类分别是:Byte,Short, Integer, Long, Float, Double,Character, Boolean。他们的使用方式都是一样的,...
分类:
移动开发 时间:
2015-04-22 13:14:46
阅读次数:
171
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:
移动开发 时间:
2015-04-22 11:11:21
阅读次数:
171
procedure TForm1.Line(x, y, x2, y2: integer);begin canvas.MoveTo(x, y); canvas.LineTo(x2, y2);end;procedure TForm1.Button1Click(Sender: TObject);var.....