$ cat ascii.sh dec_count=0while [ $dec_count -lt 256 ]do echo -e "\x$(echo "ibase=10;obase=16;$dec_count" | bc)\c" dec_count=$((dec_coun...
分类:
其他好文 时间:
2014-07-11 22:42:50
阅读次数:
496
import java.util.Scanner;public class Counter { static Scanner scanner = new Scanner(System.in); public static void count(String s) { int...
分类:
编程语言 时间:
2014-07-11 18:52:15
阅读次数:
208
查询占用cpu最高的20条sql语句,sql2008SELECT TOP 10 a.creation_time,total_worker_time/execution_count AS avg_cpu_cost, plan_handle,execution_count,(SELECT SUBSTRI...
分类:
数据库 时间:
2014-07-11 18:32:51
阅读次数:
271
selectsubstr(to_char(t.callintime,'yyyy-mm-ddhh24:mi:ss'),0,15),count(1)fromt_ivr_call_logtwheret.callintime>trunc(sysdate-8)andt.callintime<trunc(s.....
分类:
其他好文 时间:
2014-07-11 11:36:50
阅读次数:
205
select count(1) from (select distinct a.ID from chatonline a, chatonlinelog b where a.ID = b.chatonlineID) t
分类:
数据库 时间:
2014-07-11 11:25:46
阅读次数:
232
list = [1,1,3,4,6,3,7] 1.for s in list: if list.count(s) >1: list.remove(s) 2.list2=[]for s in list: if s not in list2: list2.ap...
分类:
编程语言 时间:
2014-07-11 11:04:45
阅读次数:
203
一道简单的用getline带空格带回车的字符串输入处理问题还是WA了一次 orz。。。。#include#include#includeusing namespace std;int main(){ int i,j,len; string str; int count=0; while(getlin...
分类:
其他好文 时间:
2014-07-11 09:58:25
阅读次数:
214
在执行MR将HDFS转换为HFile的时候,出现了如下异常:
14/07/09 18:02:59 INFO mapred.JobClient: map 83% reduce 0%
14/07/09 18:02:59 INFO mapred.JobClient: Task Id : attempt_201401091245_59030413_m_000001_0, Status : FAILE...
分类:
其他好文 时间:
2014-07-10 23:32:44
阅读次数:
323
前言
一般的排序都是需要进行关键字的比较的。有没有不需要比较的的呢?有的,计数排序就是其中一种。
计数排序
假设输入序列都是0到k之间的整数,则可使用计数排序。具体操作是这样的:创建一个同类型同等大小的临时数组temp,用于备份输入序列。创建一个整型大小为k的数组count,用于统计序列中各元素出现的次数。接下来只需把备份序列从大到小放回原数组即可。一个示例图:...
分类:
其他好文 时间:
2014-07-10 22:59:17
阅读次数:
252
if语句
60}">
老年人
35}">
中年人
15}">
青年人
少年
A
B
<!--
status:迭代元素的索引,可以指定first、count、even、odd、last、index属性
...
分类:
其他好文 时间:
2014-07-10 20:49:03
阅读次数:
168