solved 3 (7/22) 前缀和乱搞的题看成是模拟退火求最小费马点,很烦。 C Permutations (子序列) D Travel Frog (dp + 公式) H Appositive Body (中心对称的结论) <qj> 题意:4维空间里n个点,是否能够中心对称。 首先利用所有点求出 ...
分类:
其他好文 时间:
2018-06-16 13:40:30
阅读次数:
251
1.修改ini 3个地方,设置编码 在[client]下追加:default-character-set=utf8在[mysqld]下追加:character-set-server=utf8在[mysql]下追加:default-character-set=utf8 2.重要:::::设置数据库和表 ...
分类:
数据库 时间:
2018-06-16 00:10:31
阅读次数:
168
A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a progra ...
分类:
其他好文 时间:
2018-06-13 21:45:47
阅读次数:
195
A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a progra ...
分类:
其他好文 时间:
2018-06-04 00:13:11
阅读次数:
207
题目描述 There are N towns located in a line, conveniently numbered 1 through N. Takahashi the merchant is going on a travel from town 1 to town N, buying ...
分类:
其他好文 时间:
2018-05-27 17:14:16
阅读次数:
285
一 常见的WEB服务器和应用服务器 在UNIX和LINUX平台下使用最广泛的免费web服务器是W3C、NCSA和APACHE服务器,而Windows平台NT/2000/2003使用IIS的WEB服务器。 在选择使用WEB服务器应考虑的本身特性因素有:性能、安全性、日志和统计、虚拟主机、代理服务器、缓 ...
分类:
Web程序 时间:
2018-05-25 14:53:44
阅读次数:
242
二叉树的实现: 简洁版: class Node(object): def __init__(self, item): self.elem = item self.lchild = None self.rchild = None class Binary_Tree(object): def __ini ...
分类:
其他好文 时间:
2018-05-19 18:33:13
阅读次数:
172
1 #include 2 3 typedef struct tagBinaryTree* Node; 4 typedef struct tagBinaryTree BinaryTree; 5 6 struct tagBinaryTree{ 7 int key; 8 Node lchild; 9 No... ...
分类:
其他好文 时间:
2018-05-17 00:50:10
阅读次数:
164
分析: Dijkstra求最短路树,在最短路树上进行操作,详情可见上一篇博客:http://www.cnblogs.com/Winniechen/p/9042937.html 我觉得这个东西不压行写出了有点丑...之后写了一个压行后更丑的... 附上压行后的代码: ...
分类:
其他好文 时间:
2018-05-15 22:57:42
阅读次数:
330
分析: 树剖裸题,[Usaco2009 Jan]安全路经Travel 的简化版 剖开最短路树,遍历每一条没在最短路树上的边。 这种情况下,有且仅有u到v路径上,出来lca之外的点能够通过这条边到达,并且,路径长度为:dis[u]+dis[v]+val-dis[x];(dis[x]是从根到x的最短路长 ...
分类:
其他好文 时间:
2018-05-15 22:49:26
阅读次数:
203