def q(start , end , a):
if start>= end :
return
else :
mid = (start+end)/2
i = start+1
j = end
key =a[start]
while i<j:
while i<=end...
分类:
编程语言 时间:
2015-02-13 18:38:37
阅读次数:
202
#includeint main(){ int s,l; double rate; scanf("%d%d",&s,&l); rate=(double)(s-l)/l*100; if(rate<10) printf("OK\n"); else if(rate<50) prin...
分类:
其他好文 时间:
2015-02-13 18:12:43
阅读次数:
220
表单上传文件,想实现ajax无跳转,可以用ajaxForm实现。index.htmlFilename: upload_file.php 0) { echo "Return Code: " . $_FILES["file"]["error"] . ""; } else { ...
分类:
Web程序 时间:
2015-02-13 16:24:47
阅读次数:
121
1. 注释
单行注释 “--“ 相当于"//"
多行注释 “--[[ ]]” 相当于/* */
转义嵌套注释 --[==[ ]==]
其中=的个数不限,但个数必须对等。
2. 变量
关键字保留
if
else
elseif
then
end
for
break...
分类:
其他好文 时间:
2015-02-13 11:38:42
阅读次数:
100
var clientW = $(window).width(); if(clientW > 750){ $('html').css('font-size', 750/750 * 100 + 'px'); } else { $('html').css('font-size', clientW/...
分类:
移动开发 时间:
2015-02-12 17:52:40
阅读次数:
167
未经授权的url"; exit (); } } else { echo "回调url错误"; exit (); }} else { $code = $_GET ['code']; $url = "https://api.weixin.qq.com/sns/oauth2/access_tok...
1、Lua中的常用语句结构介绍 --if 语句结构,如下实例:gTable = {"hello", 10}if nil ~= gTable[1] and "hello" == gTable[1] then print("gTable[1] is" , gStringTable[1])else...
分类:
其他好文 时间:
2015-02-12 15:30:54
阅读次数:
198
图示
如上图所示红框部分,本人在做稳定性测试的时候,当flume运行几天后,我发现这个counter值逐渐变大,到一定值后,又变小了,有一个循环的过程,故而对此产生研究的欲望,下面来看看:
if (txnEventCount == 0) {
sinkCounter.incrementBatchEmptyCount();
} else if (txnEvent...
分类:
编程语言 时间:
2015-02-12 10:52:27
阅读次数:
1233
本人是借荐他人的文章目的是学习dbms_scheduler创建CHAIN类型的JOB,至于EXECUTABLE类型的JOB我己经在介绍了.下面转网上相关介绍:
Oracle CHAIN,也就是链,是将一串需要完成的作业连在一起,根据每一个步骤完成的不同结果来确定下面的哪一个动作需要被完成。实际上也就是if
.. then ..else。比如,可能有如下的定义,step 1成功执行,执行ste...
分类:
数据库 时间:
2015-02-11 23:20:56
阅读次数:
355
Layout
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7613
Accepted: 3658
Description
Like everyone else, cows like to stand close to their friend...
分类:
其他好文 时间:
2015-02-11 18:35:35
阅读次数:
177