会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
poorpool
水と空の境界線
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
图论——拓扑排序
luogu3563 逛公园
摘要:两遍 spfa 然后建立分层图拓扑排序 dp 一下。 写得很差劲。效率很低。 时间复杂度 $\mathrm{O}(Tnk)$。 参见 "这里" 秒懂。
阅读全文
posted @
2018-02-15 19:46
poorpool
阅读(116)
评论(0)
推荐(0)
cf886d Restoration of string
摘要:明确几点 1. 假设有串 ab,那么 a 后头必须是 b,b 前头必须是 a,否则就不是最频繁的了。 2. 不可成环,aba是非法的。 cpp include include include include using namespace std; int n, len, ru[35], chu[3
阅读全文
posted @
2018-01-21 20:33
poorpool
阅读(227)
评论(0)
推荐(0)
公告