链接: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 ...
题目传送门 题号 A B C D E F G H I J 状态 . . . . . . A.Eddy Walker 题意:给你长度为n的圈,每次随机的向左走一步或者向右走一步,问你最后将所有点走过至少一遍,最后一步停留在m点的概率是多少。 T组样例,每次的概率都要乘以之前的概率 。 dfs模拟这个过程,打一个表,会发现如果m点是 ,则概率是 ,其他所有点都是 n 。特判n 就可以了。 View C ...
2019-07-20 19:27 0 533 推荐指数:
链接: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\) 上的概率。 做法 考虑经典的线 ...
题意 给出两个序列 A、B,其长度分别为 n、m,保证 $n>m $ ,求 A 中有多少个长度为 m 的子串 S,使得\(\forall i\in\{1,2,\cdots ...
题目链接:https://ac.nowcoder.com/acm/contest/882/C 来自:山东大学FST_stay_night的的题解,加入一些注释帮助理解神仙代码。 好像题解被套了一次又 ...
2019牛客暑期多校训练营(第一场) A.Equivalent Prefixes solved by RDC 42min -1, assisted by F0_0H 题意 给两个序列,求最长前缀使得笛卡尔树相同。 做法1 二分前缀,建笛卡尔树。 做法2 递归地计算 \([l,r ...
目录 Contest Info Solutions A.Equivalent Prefixes B.Integration C.Euclid ...
题目传送门 题号 A B C D E F G H I J 状态 ...