时间限制:0.25s空间限制:4M;题意: 给出一颗n(n#include #include #include using namespace std;#define mp make_pair#define fi first#define se second#define sz(x) ((int.....
分类:
Web程序 时间:
2014-07-16 19:03:45
阅读次数:
268
问题:利用Python连接Oracle时报错,完整过程如下import cx_Oracleconn = cx_Oracle.connect('testma/dingjia@192.168.88.139:1521/orcl')Traceback (most recent call last): Fi....
分类:
数据库 时间:
2014-07-16 18:50:04
阅读次数:
2108
之前的做了一个外包项目,里边有一些敏感的信息需要AES加密,但是同样的代码在服务器就可以加密解密,在android系统中就解密失败,会出现pad block corrupted错误,下面给出解决方案, 亲测无问题!AES.javapublic class AES { public static fi...
分类:
移动开发 时间:
2014-07-16 18:45:48
阅读次数:
686
namespace一般在项目比较复杂的情况下使用较好。 在struts2的项目中,namespace主要在以下环境中常使用: 1. 在配置文件中(struts.xml)以及被它包含的XX.xml文件中 一般namespace用来提供给查找action使用。 对于result,返回的结果一般都写成绝对...
分类:
其他好文 时间:
2014-07-16 18:12:32
阅读次数:
146
Number sequence
Given a number sequence which has N element(s), please calculate the number of different collocation for three number Ai, Aj, Ak, which satisfy that Ai Ak and i
Input
The fi...
分类:
其他好文 时间:
2014-07-16 09:51:23
阅读次数:
201
/// /// 重命名文件夹/// function ReNameDirectort(SourceDirectort, DestinationDirectort: string): Boolean;var pDirOperate: TSHFileOpStruct;begin Result := Fa...
分类:
其他好文 时间:
2014-07-15 09:51:32
阅读次数:
186
主要是用 async和 await 调用 RunOnUiThread来更新。调用函数://异步加载数据开始doInBackground ();//异步加载数据开始endprotected async void doInBackground (){ var result = await T...
分类:
编程语言 时间:
2014-07-15 09:36:32
阅读次数:
282
$("#result").find("tr").each(function () { $(this).find("td").each(function () { if ($(this).text().indexOf("惠") > ...
分类:
Web程序 时间:
2014-07-14 19:04:17
阅读次数:
276
在iOS开发中,为了数据的安全经常对内容进行加密,在这儿我们对常用的加密算法进行了总结:
1、MD5
+ (NSString *)md5Hash:(NSString *)str {
const char *cStr = [str UTF8String];
unsigned char result[16];
CC_MD5( cStr, strlen(cStr), re...
分类:
移动开发 时间:
2014-07-14 18:17:16
阅读次数:
265
//不考虑大小写比较字符串1NSString *astring01 = @"this is a String!"; NSString *astring02 = @"This is a String!"; BOOL result = [astring01 caseInsensitiveCo...
分类:
其他好文 时间:
2014-07-14 17:52:38
阅读次数:
205