Design and implement a data structure for a compressed string iterator. It should support the following operations: next and hasNext. The given compre ...
分类:
其他好文 时间:
2017-07-11 00:51:21
阅读次数:
284
传送门:http://codeforces.com/problemset/problem/321/E 【题解】 首先有一个$O(n^2k)$的dp。 # include <stdio.h> # include <string.h> # include <iostream> # include <al ...
分类:
其他好文 时间:
2017-07-11 00:49:51
阅读次数:
294
#include using namespace std; typedef long long ll; const int MAXN = 1e6 + 10; int n, q; int cnt[MAXN]; ll a[MAXN]; template inline void scan_d(T &ret... ...
分类:
其他好文 时间:
2017-07-11 00:49:00
阅读次数:
239
代码中求的是最小费用最大流,求最大费用最大流只需要在设置边权时设置为原权值的相反数,执行一次最小费用最大流,计算得出最小费用的相反数就是要求的最大费用。 u[x], v[x], w[x], c[x] 分别表示 x 号边的出发点,到达点,权值和残量。 ...
分类:
其他好文 时间:
2017-07-11 00:48:31
阅读次数:
231
from urllib2 import urlopen from bs4 import BeautifulSoup # Get the next page url from the current page url def get_next_page_url(url): page = urlopen... ...
分类:
其他好文 时间:
2017-07-10 23:50:34
阅读次数:
290
记录一下工作中遇到的问题,以便以后忘记了可以来看. 在工作中遇到一个问题,就是要实现类型如下的界面,没有使用Telerik和Dev库。本来最开始是想使用Datagrid,但不知道怎么实现treeview,后来遍使用treeview。 前端xaml代码: <TreeView x:Name="mytre ...
二叉查找(搜索)树(Binary Search Tree)又称二叉排序树(Binary Sort Tree),是基于二叉树,BST具有下列性质:1、若左子树不空,则其左子树上的所有结点的值均小于根结点的值;2、若右子树不空,则其右子树上的所有结点的值均大于根结点的值;3、左、右子树也分别为二叉查找树 ...
分类:
其他好文 时间:
2017-07-10 23:44:04
阅读次数:
310
参考文章: 阿里云CentOS Linux服务器上用postfix搭建邮件服务器 本来想自己搭建邮件服务器,但是看到一篇资料表示阿里云为了禁止垃圾邮件,禁用了25端口。 可以使用阿里云的邮件推送服务。 SMTP之PHP调用示例 ...
分类:
系统相关 时间:
2017-07-10 23:42:36
阅读次数:
298
1.关闭防火墙 service iptables stop chkconfig iptables off 2.weblogic unable to get file lock问题 http://blog.csdn.net/msdnchina/article/details/38142563 http ...
分类:
Web程序 时间:
2017-07-10 23:37:12
阅读次数:
272
个人简历:http://files.cnblogs.com/files/maying3010/%E9%A9%AC%E8%8D%A7-Java-Java%E5%AE%9E%E4%B9%A0%E7%94%9F.pdf ...
分类:
其他好文 时间:
2017-07-10 23:36:37
阅读次数:
178