随笔分类 -  做题记录

上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 26 下一页
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc146_d "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc146/tasks/arc146_d "AtCoder 传送门") 考虑直接增量构造。 阅读全文
posted @ 2023-05-25 17:03 zltzlt 阅读(28) 评论(0) 推荐(0)
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc193_f "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc193/tasks/abc193_f "AtCoder 传送门") 复习一下最小割。 阅读全文
posted @ 2023-05-25 13:27 zltzlt 阅读(35) 评论(0) 推荐(0)
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc146_c "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc146/tasks/arc146_c "AtCoder 传送门") 好可爱的题啊。 没 阅读全文
posted @ 2023-05-25 09:58 zltzlt 阅读(21) 评论(0) 推荐(0)
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc267_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc267/tasks/abc267_h "AtCoder 传送门") 直接暴力跑背包的复 阅读全文
posted @ 2023-05-24 21:55 zltzlt 阅读(43) 评论(0) 推荐(0)
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc139_d "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc139/tasks/arc139_d "AtCoder 传送门") 看成方案数想了 1 阅读全文
posted @ 2023-05-24 18:31 zltzlt 阅读(35) 评论(0) 推荐(0)
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc132_e "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc132/tasks/arc132_e "AtCoder 传送门") 感觉挺 educa 阅读全文
posted @ 2023-05-24 13:55 zltzlt 阅读(28) 评论(0) 推荐(0)
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc132_f "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc132/tasks/arc132_f "AtCoder 传送门") 没见过这种在新运算 阅读全文
posted @ 2023-05-24 12:50 zltzlt 阅读(31) 评论(0) 推荐(0)
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/CF1827E "洛谷传送门") [CF 传送门](https://codeforces.com/problemset/problem/1827/E "CF 传送门") 比较神奇的题。 定一个非叶子 $r$ 为根。 显 阅读全文
posted @ 2023-05-23 18:16 zltzlt 阅读(45) 评论(0) 推荐(0)
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/CF1784D "洛谷传送门") [CF 传送门](https://codeforces.com/problemset/problem/1784/D "CF 传送门") 我怎么连这种 combinatorics 都不会 阅读全文
posted @ 2023-05-23 16:28 zltzlt 阅读(91) 评论(0) 推荐(0)
摘要:[洛谷传送门](http://https://www.luogu.com.cn/problem/AT_arc139_c "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc139/tasks/arc139_c "AtCoder 传送门") ~~ 阅读全文
posted @ 2023-05-23 15:28 zltzlt 阅读(38) 评论(0) 推荐(0)
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc132_d "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc132/tasks/arc132_d "AtCoder 传送门") 提供一个 dp 思 阅读全文
posted @ 2023-05-22 18:23 zltzlt 阅读(60) 评论(0) 推荐(0)
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_agc062_b "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/agc062/tasks/agc062_b "AtCoder 传送门") 妙妙题。 像这种最 阅读全文
posted @ 2023-05-22 10:50 zltzlt 阅读(48) 评论(0) 推荐(0)
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc302_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc302/tasks/abc302_h "AtCoder 传送门") 考虑如果只询问一次 阅读全文
posted @ 2023-05-22 09:15 zltzlt 阅读(68) 评论(0) 推荐(0)
摘要:这题太神仙了吧!感觉还不是很懂,但是尽力理一下思路。 设 $t_x$ 为最大的 $j$ 使得 $i_j = x$,不存在则 $t_x = 0$。 设 $1 \sim n$ 的数按照 $t$ 从小到大排序后是 $p_1, p_2, ..., p_n$,设 $q_i$ 为 $i$ 在 $p$ 中的排名, 阅读全文
posted @ 2023-05-21 12:12 zltzlt 阅读(37) 评论(0) 推荐(0)
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc130_c "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc130/tasks/arc130_c "AtCoder 传送门") 分类讨论,但是写起 阅读全文
posted @ 2023-05-20 11:43 zltzlt 阅读(33) 评论(0) 推荐(0)
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc133_e "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc133/tasks/arc133_e "AtCoder 传送门") 其实是套路题,但是 阅读全文
posted @ 2023-05-19 19:04 zltzlt 阅读(24) 评论(0) 推荐(0)
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/CF1832D2 "洛谷传送门") [CF 传送门](https://codeforces.com/contest/1832/problem/D2 "CF 传送门") 首先,如果一个点变成蓝色,在下一次立刻把它变成红色 阅读全文
posted @ 2023-05-19 16:43 zltzlt 阅读(61) 评论(0) 推荐(0)
摘要:洛谷传送门 AtCoder 传送门 感觉挺高妙的…… 为了方便,不妨把横纵坐标都整体减 $1$。 如果单独考虑上下移动,方案数是 $\binom{2n}{n}$。发现两个人上下总共移动 $n$ 次后一定会在同一行,设这行编号为 $x$,那么最后带个 $\binom{n}{x}^2$ 的系数,并且除掉 阅读全文
posted @ 2023-05-18 20:34 zltzlt 阅读(16) 评论(0) 推荐(0)
摘要:洛谷传送门 AtCoder 传送门 设 $P$ 的原根为 $g$,那么 $x,y$ 可以表示成 $g^a, g^b$ 的形式(特判 $x = y = 0$)。那么要求 $an \equiv b \pmod {P - 1}$,其中 $a,b \in [1, P - 1]$。 考虑固定 $a$,可以把问 阅读全文
posted @ 2023-05-18 15:43 zltzlt 阅读(42) 评论(0) 推荐(0)
摘要:洛谷传送门 AtCoder 传送门 考虑每条边,因为是静态的,所以可以预处理出 $f_{i,j}, g_{i,j}$ 表示从第 $i$ 条边,往后跳 $2^j$ 条边,跳到边的编号和目前的时间(如果不存在就当作跳到第 $0$ 条边)。直接倍增处理即可。 询问就是找到从 $u$ 开始的出边,能跳尽量跳 阅读全文
posted @ 2023-05-18 15:25 zltzlt 阅读(52) 评论(0) 推荐(0)

上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 26 下一页