# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/integer-to-roman/Integer to RomanGiven an integer, conver...
分类:
编程语言 时间:
2015-01-18 07:04:05
阅读次数:
194
1.描述:在原有时间上增加一个时间差:
代码示例:
Date psd = sysDate();
String workTimeP1 = mapP.get("WORK_TIME_") != null ? mapP.get("WORK_TIME_").toString() : "0";
int news=Integer.parseInt(workT...
分类:
编程语言 时间:
2015-01-17 18:11:02
阅读次数:
201
今天,帮人解答问题时,用VB.NET写了段根据进程名称查找PID的方法。
以前用VB6时积累的API发挥了作用,主要在VB.NET处理API声明时注意一下把所有的long改成Integer,同时如果有Any的话也需要改成Object。
VB6的Long对应VB.NET的Integer。如果混了,会报错的。
既然写了,就记录一下,便于后面使用
Module Module1
Priva...
分类:
系统相关 时间:
2015-01-16 23:52:35
阅读次数:
540
Description Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits...
分类:
其他好文 时间:
2015-01-16 23:32:56
阅读次数:
146
Matrix Power Series
Time Limit:3000MS Memory Limit:131072KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
Given a n × n matrix A and a positive integer k, find the ...
分类:
其他好文 时间:
2015-01-16 22:27:50
阅读次数:
319
DDX关联一个控件变量之后,合理性验证往往不是我们所需要的。比如“输入一个整数”“please enter a integer”。
DDX实际上就是一个GetDlgItem的封装调用。为此可以进入工程对应的rc文件,首先把afxres.rc这一个注释掉。然后进入添加一个字符串
如
STRINGTABLE
BEGIN
AFX_IDP_PARSE_REAL "你好"...
分类:
编程语言 时间:
2015-01-16 22:21:38
阅读次数:
330
这里用一个实例来演示PostgreSQL存储过程如何返回数据集.
1 首先准备数据表
//member_category
create table member_category(id serial, name text, discount_rate real, base_integral integer);
alter table member_category add primary ke...
分类:
数据库 时间:
2015-01-16 19:17:15
阅读次数:
242
function TForm1.CopyPath(BasePath,TargetPath:string):Boolean;
var
i:Integer;
cmd:string;
begin
cmd:='echo d | Xcopy '+BasePath+' '+TargetPath+' /s/e';
ShowMessage(cmd);
i:=ShellExecut...
分类:
其他好文 时间:
2015-01-16 19:16:15
阅读次数:
149
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB
Credits...
分类:
其他好文 时间:
2015-01-16 16:52:47
阅读次数:
211
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:
其他好文 时间:
2015-01-16 16:35:44
阅读次数:
144