#includeusing namespace std;const int nMax = 30005;const int mMax = 150005;const int inf = 1000000000; struct node{ int v, w, next;}edge[mMax];int ...
分类:
其他好文 时间:
2015-08-15 18:10:58
阅读次数:
81
CSS的几个概念:
包含块:一个元素的“布局上下文”。对于正常的HTML文本流中的一个元素,包含块由最近的块级祖先框、表单元格或行内块祖先框的内容边界(content
edge)构成。考虑如下标记
This is a paragraph.
p元素的包含块是div元素,因为作为块元素、表单元格或行内块元素,这是最近的祖先元素。类似地div的包含块是body。
非替换元素:...
分类:
Web程序 时间:
2015-08-15 12:06:39
阅读次数:
151
namespace NetFlow{ const int MAXN=100000,MAXM=100000,inf=1e9; struct Edge { int v,c,f,nx; Edge() {} Edge(int v,int c,int...
分类:
其他好文 时间:
2015-08-15 11:53:30
阅读次数:
76
题目大意:给出一张连通图,问两个点之间的距离解题思路:LCA裸题#include
#include
#define N 40010
#define M 80010struct Edge{
int to, next, dis;
}E[M];struct Question {
int x, y;
}Q[N];int n, m ,tot;
int he...
分类:
其他好文 时间:
2015-08-14 06:30:52
阅读次数:
107
在Solid Edge中,可以利用『繪圖』à『比例縮放』的功能來對繪製的草圖進行比例的縮放,不過如果想參考一個已知(或未知)長度的線段來對原草圖進行比例的縮放,又該如何做呢?以下為各位說明. http://mp.weixin.qq...
分类:
其他好文 时间:
2015-08-14 01:21:59
阅读次数:
220
namespace NetFlow{ const int MAXN=100000,MAXM=100000,inf=1e9; struct Edge { int v,c,f,nx; Edge() {} Edge(int v,int c,int...
分类:
其他好文 时间:
2015-08-13 19:37:22
阅读次数:
110
思路:
1.Jump Game思路:和求Max Subarray类似,维护一个当前元素可以跳至的最大值,每循环一次更新reach=Math.max(nums[i]+1,reach),当i>reach或i>=nums.length的时候循环终止,最后看循环是否到达了最后,到达最后则返回true,否则,返回false.
2.和Jump Game不同的是,Jump Game II 让求的是跳过所有的元素至少需要几步,这需要维护一个局部变量edge为上一个reach,当i<=reach时,每次仍然通过Math.ma...
分类:
其他好文 时间:
2015-08-13 10:03:50
阅读次数:
107
最近项目使用到ThinkPHP框架,其中一个页面顶部总是一小段空白。 如下图所示: 而且只会在chrome和edge浏览器出现,ff则不会出现这个问题。由于该页面是由PHP+HTML模板拼接接,因此先后排查了html文件、JavaScrip...
分类:
Web程序 时间:
2015-08-12 21:54:29
阅读次数:
1330
wiki:Epoll优点;Epoll工作流程;Epoll实现机制:epollevent;Epoll源码分析;Epoll接口:epoll_create;epoll_ctl;epoll_close;Epoll工作方式:LT(level-triggered);ET(edge-triggered);Epol...
分类:
系统相关 时间:
2015-08-12 21:27:56
阅读次数:
519
链接:http://poj.org/problem?id=1273代码:#include#include#include#includeusing namespace std;const int MAXN = 1005;const int oo = 1e9+7;struct Edge{ int...
分类:
其他好文 时间:
2015-08-12 13:04:23
阅读次数:
167