Stay Hungry,Stay Foolish!

摘要: C - Gap Existence https://atcoder.jp/contests/abc296/tasks/abc296_c 思路 非常规比对。 对于每个元素, 计算其 + x 和 -x 情况, 计算之后的值,如果也在当前列表中, 则满足要求。 Code https://atcoder.j 阅读全文
posted @ 2023-04-02 22:29 lightsong 阅读(17) 评论(0) 推荐(0) 编辑
摘要: D - M<=ab https://atcoder.jp/contests/abc296/tasks/abc296_d 思路 a 和 b 的范围都是 1 到 n, a 和 b 在大小关系上是对称的, 我们只考虑 a < b 的情况, 同时 a 也可以 等于 b 所以我们考虑 a <= b 情况 又 阅读全文
posted @ 2023-04-02 22:24 lightsong 阅读(112) 评论(0) 推荐(0) 编辑
Life Is Short, We Need Ship To Travel