旧的在这里 https://www.luogu.com.cn/article/qo9wc0g9
以防一百场以后 duel 记录被吞掉写的。
https://algorithm-duels.online/home/duel/19854 别样的换题大战,B 是建图+拓扑排序+dp,C 转化为每个数入度为奇数,人类智慧异或哈希+暴力。
https://algorithm-duels.online/home/duel/19908 D 按极角排序取最大的相邻间隔。
https://algorithm-duels.online/home/duel/19912 B 结论题,打表发现规律,慢了一点。C 神秘贪心,被降智乐。
https://algorithm-duels.online/home/duel/19926 B 打个每次画数量最小的那种线段,找规律。C 爆搜题,场上往结论方面想了挂掉了。
https://algorithm-duels.online/home/duel/19967 傻逼 dp,对前缀和每种模数存当前最大值。
https://algorithm-duels.online/home/duel/19972 操作方法是根的儿子子树操作,再对儿子的儿子操作……,换根 dp。
https://algorithm-duels.online/home/duel/20000 D 是排序+贪心,调不出来被对面抢了,F 二分+扩展域并查集,又慢了几秒被他抢了。
https://algorithm-duels.online/home/duel/20014 神必构造,调不出来。
https://algorithm-duels.online/home/duel/20028 B 组合计数 dp;D 只会改变后二十个数,暴力即可。
https://algorithm-duels.online/home/duel/20044 两个宝宝数学题。
https://algorithm-duels.online/home/duel/20046 <T 和 >T 的总有一边消完, 大的那边消完。
https://algorithm-duels.online/home/duel/20052 四次方都能过的唐唐 dp。
https://algorithm-duels.online/home/duel/20053 C 剩下 个数时 的会 GG,从后往前 dp, 表示后 个数中第 个数血量为 。
https://algorithm-duels.online/home/duel/20092 B 三个数一轮中没被干掉则中间的数下一轮也不会被干掉,根据此暴力维护可证明复杂度是对的。C 预处理出一个数作为最小值的区间,然后线段树优化 dp。
https://algorithm-duels.online/home/duel/20104 https://algorithm-duels.online/home/duel/20105 https://algorithm-duels.online/home/duel/20108 800 场。
https://algorithm-duels.online/home/duel/20121 B 离开时间肯定是某道题的时间减 1,枚举必做那些题,剩下的题贪心做简单题。C 如果两个点在环上对应的同一点贡献为 1,否则贡献为 2;同一个点贡献为 1。
https://algorithm-duels.online/home/duel/20168 数论专场,B 可以搞出 gcd 的倍数,然后分讨并特判 。C 先转化为互质, 以后必定能搞出来,剩下的跑最短路。
https://algorithm-duels.online/home/duel/20171 C 建出笛卡尔树,容易求出每个极长段的个数,然后贪心选长的。