SEERC 2020 題解
啥都想不到 A - Archeologists 考慮一個 naive dp:\(f_i(j)\) 表示第 \(i\) 個位置,深度為 \(j\) 的最大收益。那么: \[f_{i}(j) ...
啥都想不到 A - Archeologists 考慮一個 naive dp:\(f_i(j)\) 表示第 \(i\) 個位置,深度為 \(j\) 的最大收益。那么: \[f_{i}(j) ...
題目:GCD 鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=5726 題意:給一個數組a,大小為n,接下來有m個詢問,每次詢問給出l、r,定義f[l,r ...
A - Subsequence Permutation 求出 \(s\) 排序后的結果 \(t\),計算 \(s, t\) 不同的位置數即可。 B - Running for Gold 答案唯一 ...
只做完了 場切的 幾題 A - Advertisement Matching \(N\) 個廣告,\(M\) 個人,第 \(i\) 個廣告需要分給 \(a_i\) 個人觀看,第 \ ...