会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
曹文博
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
上一页
1
···
9
10
11
12
13
14
15
下一页
2019年3月19日
不要62(简单数位dp)
摘要: 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。 杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服...
阅读全文
posted @ 2019-03-19 20:27 曹文博
阅读(53)
评论(0)
推荐(0)
编辑
二分查找回顾
摘要: 近段时间过于依赖lower_bound 以至于在比赛时代码出现了很多问题 回顾一下二分查找相当于upper_bound 返回的是大于x的第一个值的位置int bis(int x){ int l=x,r=n,...
阅读全文
posted @ 2019-03-19 09:38 曹文博
阅读(47)
评论(0)
推荐(0)
编辑
2019年3月18日
nvitation Cards POJ - 1511 (双向堆优化dijk)
摘要: N cases. The first line of the input contains only positive integer N. Then follow the cases. Each case b...
阅读全文
posted @ 2019-03-18 19:28 曹文博
阅读(55)
评论(0)
推荐(0)
编辑
Arbitrage POJ - 2240 (spfa 初体验)
摘要: Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into ...
阅读全文
posted @ 2019-03-18 18:05 曹文博
阅读(82)
评论(0)
推荐(0)
编辑
2019年3月17日
Cow Contest POJ - 3660 (弗罗伊得算法的应用)
摘要: N (1 ≤ N ≤ 100) cows, conveniently numbered 1..N, are participating in a programming contest. As we all kn...
阅读全文
posted @ 2019-03-17 21:18 曹文博
阅读(70)
评论(0)
推荐(0)
编辑
2019年3月15日
POJ - 1860 (BELLMAN_FORD)(判断负权边)Currency Exchange
摘要: Several currency exchange points are working in our city. Let us suppose that each point specializes in tw...
阅读全文
posted @ 2019-03-15 20:58 曹文博
阅读(59)
评论(0)
推荐(0)
编辑
2019年3月14日
关于最短路算法的学习
摘要: 对prim算法和dijk算法搞混了归根结底还是对算法的理解不够透彻先写一道变型dijk算法Freddy Frog is sitting on a stone in the middle of a lake. Su...
阅读全文
posted @ 2019-03-14 11:14 曹文博
阅读(97)
评论(0)
推荐(0)
编辑
2019年3月13日
dijk的堆优化(链式前向星存图)(结构体运算符重载)(小根堆对结构体的排序)
摘要: #include#include#include#include#include#include#include#include#includeusing namespace std;struct node{ ...
阅读全文
posted @ 2019-03-13 09:26 曹文博
阅读(110)
评论(0)
推荐(0)
编辑
2019年3月12日
2019东北农业大学省赛积分赛第二场订正(b,k)
摘要: b题只需要把递增的地方累加起来,最后加上最大值减去最后一点的值即可ac代码#include#includeusing namespace std;int a[100005];int main(){ int ...
阅读全文
posted @ 2019-03-12 08:54 曹文博
阅读(45)
评论(0)
推荐(0)
编辑
2019年3月9日
东北农业大学积分赛第一场(b题) the sum of vaule(dfs序+邻接表存图+线段树+单点更新)
摘要: dfs序处理的一类问题为查询子树权值和在这里第一次使用了临界表存图邻接表适用于稀疏图 对于重边自环问题可以代替临界矩阵#include#include#include#includeusing namespace...
阅读全文
posted @ 2019-03-09 17:15 曹文博
阅读(50)
评论(0)
推荐(0)
编辑
上一页
1
···
9
10
11
12
13
14
15
下一页