目录 Contest Info Solutions A.Equivalent Prefixes B.Integration C.Euclid ...
题目传送门 题号 A B C D E F G H I J 状态 . . . . . . A.Equivalent Prefixes 题意:给出两个序列 rmq 相等的定义:任意子区间最小值相等,然后给出 a b 两个数组,求最长的前缀相等序列长度。 题解:我们考虑前 k 个数字已经是相等序列了,这个时候我们加入第 k 个元素 x ,如果 x 比第 k 个元素大,会发现这绝对不会使序列变的不合法。当 ...
2019-07-18 19:38 4 727 推荐指数:
目录 Contest Info Solutions A.Equivalent Prefixes B.Integration C.Euclid ...
2019牛客暑期多校训练营(第一场) A.Equivalent Prefixes solved by RDC 42min -1, assisted by F0_0H 题意 给两个序列,求最长前缀使得笛卡尔树相同。 做法1 二分前缀,建笛卡尔树。 做法2 递归地计算 \([l,r ...
https://ac.nowcoder.com/acm/contest/5666#question A B-Suffix Array ...
J.Easy Integration 公式题,沃利斯积分:\(\int_{0}^{1}{(x-x^2)^n}dx=\frac{(n!)^2}{(2n+1)!}\) 一直按照分部积分公式:\(\int ...
链接:https://ac.nowcoder.com/acm/contest/882/F来源:牛客网 Given 2N people, you need to assign each of them into either red team or white team ...
参考于: https://www.luogu.org/problemnew/solution/P4723 shadowice1984 (太难) https://www.cnblogs.com/zhgy ...
A. Eddy Walker solved by rdc 202min -1 题意 一个点在长度为 \(n\) 的环上游走,输出第一次访问到所有点时在 \(x\) 上的概率。 做法 考虑经典的线段上随游走问题,数轴上有 \(x=0\) 的 \(A\) 点,与 \(x=n\) 的 \(B ...
题目传送门 题号 A B C D E F G H I J 状态 ...