摘要: Problem - D2 - Codeforces Dances (Hard Version) - 洛谷 Hint1: 对于 \(C[i]\) 的答案上界和下界分别是多少? Hint1.1: 记 \(C[i]_1\) 时的答案 \(ans\),答案范围显然是 \([ans,ans+1]\) Hint 阅读全文
posted @ 2023-12-23 17:50 FOX_konata 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Problem - C2 - Codeforces Doremy's Drying Plan (Hard Version) - 洛谷 很好的一道 \(dp\) 题,无论是 \(dp\) 状态还是优化都很思维 我们设 \(dp_{i,j}\) 表示考虑了前 \(i\) 个城市,第 \(i\) 个城市干 阅读全文
posted @ 2023-12-23 15:51 FOX_konata 阅读(10) 评论(0) 推荐(0) 编辑