? Hit me, lock me up, do anything with me, ... ? and Marrone, Bruno After thousands of years repeating the title of this problem statement, always wit ...
分类:
其他好文 时间:
2020-05-10 01:27:51
阅读次数:
82
Til the Cows Come Home "POJ 2387" 这题是最简单的最短路求解题,主要就是使用dijkstra算法,时间复杂度是$O(n^2)$. 需要注意的是,一定要看清楚题目的输入要求,是先输入边,再输入顶点,一开始我没看清,wrong answer了一次。 ...
分类:
其他好文 时间:
2020-05-09 20:41:51
阅读次数:
53
```//对于一个有向图,连通分量:对于分量中任意两点uv,//必然可以从u走到v,也可以从v走到u//强连通分量(scc):极大连通分量,也就是加上任何一个点之后,都不是连通分量//有向图通过缩点,转化为有向无环图(DAG),拓扑图//缩点是指将所有连通分量缩成一个点//Tarjan算法求scc/... ...
分类:
其他好文 时间:
2020-05-08 18:02:50
阅读次数:
74
由于微软的一些迷之bug,像click事件一样直接在事件中生成的方法无法触发,包括MouseLeftButtonDown等,必须采取手动方法: 1.新建路由事件: private void bt_MouseDown(object sender, RoutedEventArgs e) { //bili ...
点赞就是当前登录人 一、流程分析: 1 绑定事件 2 携带data={article_id,is_up}发送Ajax请求 3 对应的视图函数要生成一个赞或者灭记录 4 响应结果给ajax 5 Ajax的success处理 二、功能实现 文章点赞模块article_detail.html <div i ...
分类:
其他好文 时间:
2020-05-07 13:30:16
阅读次数:
76
描述:农夫 John 建造了一座很长的畜栏,它包括N (2 <= N <= 100,000)个隔间,这些小隔间依次编号为x1,...,xN (0 <= xi <= 1,000,000,000).但是,John的C (2 <= C <= N)头牛们并不喜欢这种布局,而且几头牛放在一个隔间里,他们就要发 ...
分类:
其他好文 时间:
2020-05-06 13:41:49
阅读次数:
63
一、TCP/IP协议体系的认知 (1)分层。一部分处于用户态,一部分处于内核态。数据链路层,网络层,传输层封装于操作系统内核态。应用层存在于操作系统的用户空间,包括DNS,FTP,HTTPS,HTTP,工作中接触较多的是应用层的部分。但其它层的原理必须理解,面试考察。 (2)层与层之间下层对上层是透 ...
分类:
其他好文 时间:
2020-05-05 18:25:23
阅读次数:
136
Hotel POJ - 3667 The cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake S ...
分类:
其他好文 时间:
2020-05-05 10:42:19
阅读次数:
58
Just a Hook HDU - 1698 In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of sever ...
分类:
其他好文 时间:
2020-05-05 00:29:03
阅读次数:
57
parse_url介绍 parse_url ( string $url [, int $component = -1 ] ) : mixed 此函数返回一个关联数组,包含现有 URL 的各种组成部分。如果缺少了其中的某一个,则不会为这个组成部分创建数组项。组成部分为: scheme – 如 http ...
分类:
Web程序 时间:
2020-05-04 15:46:27
阅读次数:
211