# include
# include
# include
# include
using namespace std;
struct point
{
double left,right;
}p[2010],temp;
bool cmp(point a,point b)
{
return a.left<b.left;
}
int main()
{
int n,i,count,fla...
分类:
其他好文 时间:
2014-07-28 16:20:33
阅读次数:
208
public class Number { int count; public void method01(){ // int count=3; count=3; // this.count=3; System.out.println(count); } public static void mai...
分类:
其他好文 时间:
2014-07-28 15:25:23
阅读次数:
230
# cat > check_process_is_end.shwhile truedo sleep 30 res=`ps -ef | grep RNAhybrid` count=`grep -o "RNAhybrid" <<<"$res" | wc -l` if [ "$count" -eq "1"...
分类:
系统相关 时间:
2014-07-28 15:06:23
阅读次数:
293
1、列裁剪select a,b from t where e < 10;设置参数:hive.optimize.cp = true2、分区裁剪select * from (select c1,count(1) from t group by c1) subqwhere subq.prtn = 100;...
分类:
其他好文 时间:
2014-07-28 15:04:23
阅读次数:
199
有一个数组(非递减),旋转了不知道多少个位,在该数组中找一个数的下标。写出代码(用C/C++或者java)并分析时间空间复杂度,考虑效率(很重要)。eg:数组 [6,7,1,2,3,4,4] 找3,返回4;函数原型C/C++:int find(int * a,int n,int count) cou...
分类:
移动开发 时间:
2014-07-28 14:57:53
阅读次数:
229
第二章 一切都是对象尽管Java是基于C++的,但相比之下,Java是一种更纯粹的面向对象程序设计语言.c++和Java都是杂合型语言(hybird language)用引用(reference)操作对象类似遥控器(引用)来操作电视(对象)在Java中你可以创建一个引用,但是没有与任何对象关联,比如...
分类:
编程语言 时间:
2014-07-28 14:26:13
阅读次数:
262
public class MyVolumnView extends View { int count_dark = 7; final int MAX_COUNT = 15; Paint paint; Bitmap dark; Bitmap light; final...
分类:
其他好文 时间:
2014-07-27 23:20:29
阅读次数:
261
1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断 select * from people where peopleId in (select peopleId from people group by peopleId having count (peopl...
分类:
数据库 时间:
2014-07-27 22:38:29
阅读次数:
233
# include
# include
# include
using namespace std;
int main()
{
int n,i,j,k,count;
int flag1[1010],flag2[1010],a[1010],b[1010];
while(~scanf("%d",&n),n)
{
for(i=0;i<n;i++)
scanf("%d",&a[...
分类:
其他好文 时间:
2014-07-27 11:41:45
阅读次数:
190
2014年7月26日 内核抢占和内核控制路径的设计
内核抢占的一种定义:如果进程正在内核态执行内核函数时,允许发生内核切换(就是被替换的进程是内核函数所在进程),这个内核就是抢占的。
linux内核提供了内核抢占的开启和关闭功能,在current_thread_info的preempt_count字段大于0时,内核就是不能抢占的。可以通过preempt_disable和preempt_...
分类:
系统相关 时间:
2014-07-27 11:29:02
阅读次数:
255