Language:
Default
Protecting the Flowers
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 4942
Accepted: 1973
Description
Farmer John went to cut some w...
分类:
其他好文 时间:
2015-05-10 09:54:58
阅读次数:
145
ls *.txt | xargs -i -n 1 sh -c "cut -f 1-3 {} > ../{}"即可
分类:
其他好文 时间:
2015-05-09 23:22:39
阅读次数:
101
1 def main(): 2 n = int(raw_input()) 3 arr = map(int, raw_input().strip().split()) 4 5 for i in range(n): 6 cutNum = 0 7 ...
分类:
其他好文 时间:
2015-05-09 17:30:19
阅读次数:
125
mermaid 语法mermaidusage官网地址:http://knsv.github.io/mermaid/index.html图例如从左到右的一个有向图graph LR;A[aa bb]-->B(wo);A-->C((我是C));B-->D>我是D];C-->D;D-->E{我是E};C--...
分类:
其他好文 时间:
2015-05-09 14:57:00
阅读次数:
353
#wc-[cmlLw]选项和参数-c,--bytes统计字节数-m,--chars统计字符数-l,--lines统计行数-L,--max-line-length最长行的字符数-w,--words统计单词数例子:root@localhost:~/shell#catfileMassachusettsVirginiaTulsaFallsMassachusettsVirginiaViewMassachusettsviewroot@localhost:..
分类:
系统相关 时间:
2015-05-08 20:30:05
阅读次数:
240
#include
#include
using namespace std;
//因为只是为了练习DFS和BFS 数据结构定义的很随意 没有优化类啦 能用就行
class Graph
{
private:
static const int MAX=100;
int weight[MAX][MAX];//任意一个图最大节点数为MA
int nodes;
int vertexs;...
分类:
其他好文 时间:
2015-05-08 13:04:48
阅读次数:
109
初步打算把概率图模型中推断方法都介绍一下,包括Belief Propagation,变分方法,MCMC,以及像是Graph cut也做一些说明。
关于Belief Propagation是什么?
Belief Propagation是一种信息传递方法,一般用来解关于概率图模型中的推断问题,在这些问题中,单纯地通过公式推导或者MC模拟是很难得到准确答案的,这就需要BP,能够很有效地求解一些特定问题...
分类:
其他好文 时间:
2015-05-08 07:03:19
阅读次数:
284
一、使用ftrace:内核版本较高的Linux系统已默认有ftrace功能。1、相关设置首先获取root权限:Su 输入密码再切换目录:cd /sys/kernel/debug/ftracing设置追踪器:echo function/function_graph >current_tracer设置函...
分类:
其他好文 时间:
2015-05-07 23:35:14
阅读次数:
144
1.awk '{print substr($1,1,4)}'2.不要第一行 awk 'NR!=1{print $0}'3.获取后缀名ls |tov|cut -d "." -f24.减法start=`expr ${start1} - 1`end=`expr ${end1} - ${start}`5.去...
分类:
系统相关 时间:
2015-05-07 08:43:39
阅读次数:
137
这题写起来真累。。名次树就是多了一个附加信息记录以该节点为根的树的总结点的个数,由于BST的性质再根据这个附加信息,我们可以很容易找到这棵树中第k大的值是多少。所以在这道题中用一棵名次树来维护一个连通分量。由于图中添边比较方便,用并查集来表示连通分量就好了,但是删边不太容易实现。所以,先把所有的边删...
分类:
其他好文 时间:
2015-05-06 21:00:09
阅读次数:
140