目錄 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 狀態 ...