鏈接: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 狀態 ...