摘要: [Codeforces 题目传送门](https://codeforces.com/contest/796/problem/E) & [洛谷题目传送门](https://www.luogu.com.cn/problem/CF796E) ~~当被数据结构搞自闭的 tzc 信心满满地点开一道 *2400 阅读全文
posted @ 2021-03-06 21:38 tzc_wk 阅读(69) 评论(0) 推荐(0)
摘要: [Codeforces 题目传送门](https://codeforces.com/contest/1149/problem/C) & [洛谷题目传送门](https://www.luogu.com.cn/problem/CF1149C) 首先考虑这个所谓的“括号树”与直径的本质是什么。考虑括号树上 阅读全文
posted @ 2021-03-06 17:44 tzc_wk 阅读(83) 评论(0) 推荐(0)
摘要: [Codeforces 题目传送门](https://codeforces.com/contest/643/problem/G) & [洛谷题目传送门](https://www.luogu.com.cn/problem/CF643G) 首先考虑 $p>50$ 的时候怎么处理,也就是求一个区间的**绝 阅读全文
posted @ 2021-03-06 16:51 tzc_wk 阅读(92) 评论(1) 推荐(0)
摘要: [题面传送门](https://www.luogu.com.cn/problem/P4437) 开始 WA ycx 的~~遗产~~(bushi 首先可以将题目转化为图论模型:$\forall i$ 连边 $a_i\to i$,然后求图的一个拓扑序 $b_1,b_2,\dots b_n$ 使得 $\s 阅读全文
posted @ 2021-03-06 12:19 tzc_wk 阅读(93) 评论(0) 推荐(0)