Once upon a time, there was a traveler. He plans to travel using stagecoaches (horse wagons). His starting point and destination are fixed, but he can ...
分类:
其他好文 时间:
2017-08-17 12:54:49
阅读次数:
166
题目描述 Farmer John is on a boat seeking fabled treasure on one of the N (1 <= N <= 100) islands conveniently labeled 1..N in the Cowribbean Sea. The tre ...
分类:
其他好文 时间:
2017-08-14 10:07:17
阅读次数:
174
最大流:DINIC or SAP 最小费用最大流:SPFA+增广(费用的值较离散) or ZKW(费用的值集中) 有源汇的上下界最大流:新建s', t',用(i, j, l, r)表示i到j有一条下界为l上界为r的边,将每条这样的边拆成(s', j, 0, l), (i, t', 0, l), (i ...
分类:
其他好文 时间:
2017-08-12 00:31:31
阅读次数:
346
个人心得:模板题,不过还是找到了很多问题,真的是头痛,为什么用dijkstra算法book【1】=1就错了..... 纠结中.... Bessie is out in the field and wants to get back to the barn to get as much sleep a ...
分类:
其他好文 时间:
2017-08-08 17:53:18
阅读次数:
213
经纬度计算, 本质上是球面三角函数的应用, 将数学公式转换为代码的过程, 站在前人的肩膀上, 自己又补充了一点: ...
分类:
其他好文 时间:
2017-08-08 16:56:46
阅读次数:
227
题目描写叙述 Problem B: Alaska The Alaska Highway runs 1422 miles from Dawson Creek, British Columbia to Delta Junction, Alaska. Brenda would like to be the ...
分类:
其他好文 时间:
2017-08-04 19:31:39
阅读次数:
193
Agustinus Kristiadi's Blog TECH BLOG TRAVEL BLOG PORTFOLIO CONTACT ABOUT Agustinus Kristiadi's Blog TECH BLOG TRAVEL BLOG PORTFOLIO CONTACT ABOUT TECH ...
分类:
Web程序 时间:
2017-07-29 19:39:16
阅读次数:
237
从任意一点dfs, 和dfs return 当前, 左节点, 右节点的模板 ...
分类:
其他好文 时间:
2017-07-25 14:21:22
阅读次数:
148
不是我写的, 也看不太懂, 备忘 参考: http://blog.csdn.net/koryako/article/details/51864161 ...
分类:
其他好文 时间:
2017-07-22 15:41:27
阅读次数:
221
操作 is_empty() 链表是否为空 length() 链表长度 travel() 遍历链表 add(item) 链表头部添加 append(item) 链表尾部添加 insert(pos, item) 指定位置添加 remove(item) 删除节点 search(item) 查找节点是否存在 ...
分类:
编程语言 时间:
2017-07-20 10:28:46
阅读次数:
146