摘要: G. Subset with Zero Sum 很妙。 一开始冲着背包去想的,显然不行。 考虑他条件给的这个 \(i − n \le a_i \le i − 1\) 化简一下得到 \[1 \le i - a_i \le n \]题目要去求 \[\sum \limits_{i \in S} a_i = 阅读全文
posted @ 2024-01-05 20:16 Lu_xZ 阅读(43) 评论(0) 推荐(0)