上一页 1 ··· 3 4 5 6 7
摘要: 定义 NAME 为要操作的对象名 定义 DIR 为文件所在的绝对路径 所有操作默认在普通用户下进行 所有软件包默认是指Debian包(deb包) 1.查看进程 2.强制结束进程 PID由top获得:找到进程名字,看左边的PID 3.创建文件夹 4.编辑某个文本 用root权限编辑某个文本 5.在已经 阅读全文
posted @ 2018-11-07 16:24 dudujerry 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 代码: struct NODE{ int to; int nxt; int c; }node[MM];//链式向前星 int head[NM],lcnt=1; void add(int a,int b,int c){ node[lcnt].to=b; node[lcnt].c=c; node[lcn 阅读全文
posted @ 2018-11-06 15:57 dudujerry 阅读(1273) 评论(0) 推荐(0) 编辑
摘要: 代码: #include<iostream> #include<vector> #include<cstdio> #include<queue> #include<map> #include<cstdlib> #include<cmath> #include<algorithm> #include< 阅读全文
posted @ 2018-11-06 15:29 dudujerry 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 代码: #include<iostream> #include<vector> #include<cstdio> #include<queue> #include<map> #include<cstdlib> #include<cmath> #include<algorithm> #include< 阅读全文
posted @ 2018-11-06 14:08 dudujerry 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 树状数组主要用于解决查询修改等区间操作的问题。 其实它也是线段树的一部分:线段树能做的,树状数组不一定能做;树状数组能做的,线段树一定能做(可能会比较慢)。 那么,树状数组的优点: 1.代码简洁好记。 2.由于使用位运算,跑得快。 当然也有缺点: 1.相对来说难以理解。 2.解决问题的广度不如线段树 阅读全文
posted @ 2018-10-26 18:50 dudujerry 阅读(295) 评论(0) 推荐(2) 编辑
摘要: 嗯...至于输入可以参考 https://www.luogu.org/problemnew/show/P3372 这篇代码过了 让我介绍一下线段树: 各位,这就是一棵线段树。 对于每个非叶节点,其左儿子右儿子分别维护它一半的区间。 例如,a负责[1~8]区间,则其左儿子l负责[1~4],右儿子 而我 阅读全文
posted @ 2018-10-25 15:30 dudujerry 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 好消息!好消息! QQ for linux现已推出! https://im.qq.com/linuxqq/download.html 虽说是官方的,但是还是需要一定的适配,总之都可以用啦! 2019.10.30 什么困扰着一批批的ubuntu桌面用户?是麻花藤。哦不,是QQ,怎么在ubuntu上安装 阅读全文
posted @ 2018-10-10 15:15 dudujerry 阅读(21259) 评论(8) 推荐(0) 编辑
摘要: 输入: ABCDABTBD_TISABCDABCABCDABC q为当前nxt处理的模版文本串下标; k为“失配时去哪里”,详情请看注释。 我是求完nxt的分界线 q为当前文本串判断到哪里; nxt为“失配时去哪里”。 输出:nxt[q(1)]=k(0);nxt[q(2)]=k(0);nxt[q(3 阅读全文
posted @ 2018-09-15 22:12 dudujerry 阅读(400) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7