会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
iefnah06
博客园
::
首页
::
博问
::
闪存
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2020年4月21日
SRM779 Round 1 ParadePlanner
摘要: URL https://community.topcoder.com/stat?c=problem_statement&pm=15873 解法 先 DP 算出不走回头路的方案数,然后减去三角形、四边形的方案数。 实现 路上
阅读全文
posted @ 2020-04-21 20:05 iefnah06
阅读(141)
评论(0)
推荐(0)
SRM780 Round 1 RestrictedLeaves
摘要: URL https://community.topcoder.com/stat?c=problem_statement&pm=15963&rd=17853 解法 计 $dp(v,0/1,0/1,0/1)$,三个 $0/1$ 分别表示 $v$ 是否在 IS 内,子树内 DFS 最小的叶子是否在 IS
阅读全文
posted @ 2020-04-21 20:01 iefnah06
阅读(129)
评论(0)
推荐(0)
SRM766 Round 1 ShortestMissingSubsequences
摘要: URL https://community.topcoder.com/stat?c=problem_statement&pm=15700 解法 先特判 $G N$ 的情况,下面假设 $G \le N$。 考虑暴力的 DP,记 $L(i,c)$ 为考虑了 $[i,N)$ 这个后缀,第一个字符为 $c$
阅读全文
posted @ 2020-04-21 19:56 iefnah06
阅读(154)
评论(0)
推荐(0)