本测试是基于oracle 10.2.0.5
SQL*Plus: Release 10.2.0.5.0 - Production on Tue Jul 29 20:45:16 2014
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edi...
分类:
其他好文 时间:
2014-07-29 21:54:32
阅读次数:
390
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 (...
分类:
其他好文 时间:
2014-07-29 21:53:12
阅读次数:
284
本篇主要讲了友元、通过友元重载函数运算符以及类型转换,总的来说写的还是比较详细的,花了我不少功夫,这里给大家看下...
分类:
编程语言 时间:
2014-07-29 21:52:12
阅读次数:
396
转移方程dp[i][j]=Max(dp[i][j-1]+a[j],max(dp[i-1][k] ) + a[j] ) 0
此链接中有详解点击打开链接
#include
#include
#include
using namespace std;
#define MAXN 1000000
#define INF 0x7fffffff
int dp[MAXN+10];
int mma...
分类:
其他好文 时间:
2014-07-29 21:50:32
阅读次数:
220
//获得汉字字符个数function ChineseWordsCount(text:string):Integer;var i,sum,e,c,t: Integer;begin Result:=0; c := 0; sum := Length(text); if Sum=0 then exit; f...
分类:
其他好文 时间:
2014-07-29 21:14:32
阅读次数:
211
随机字符串生成functionTfrmPWGenerate.btnGenerateClick(Sender: TObject):string;{max length of generated password}constintMAX_PW_LEN=10;vari: Byte;s:string;beg...
分类:
其他好文 时间:
2014-07-29 21:10:52
阅读次数:
216
C:\Users\ADMINI~1\AppData\Local\Temp\ //GetTempPath获得临时文件目录(Temp文件夹) function TempPath:String;vartmp:array [0..MAX_PATH] of Char;beginGetTempPath(MAX_...
分类:
其他好文 时间:
2014-07-29 21:01:32
阅读次数:
252
简单DP。递推关系式:f[i,j]=max{f[i-1,k]}+value[i,j].其中,i>=2,i=1;i--){ top++;stack[top]=g[i+1][stack[top-1]]; } for(i=top;i>=1;i--){ printf("%d",stack[i]); i...
分类:
其他好文 时间:
2014-07-29 21:01:12
阅读次数:
204
uses shlobj;function GetDesktopFolder():string;var pItem: PItemIDList; temp: array[0..MAX_PATH] of Char;begin SHGetSpecialFolderLocation(0, CSIDL_DESK...
分类:
其他好文 时间:
2014-07-29 20:34:32
阅读次数:
214
起始点是从头开始的,一直到后面搜索,一直到和为小于零,起始点就从开始小于零的后一位开始并把结果改为零,再搜索的过程中,一遇到大的数据就记录下来,把其计为起始点和终点的,这里面主要考虑到,当你搜索到一个位置的,它的和不小于零的,那对于后面来说,加上去还是会变大的,不会给变小的,所以要再搜索下去的,走一边就KO了。代码如下:#include
#include
#include
using namesp...
分类:
其他好文 时间:
2014-07-29 18:07:52
阅读次数:
149