Stay Hungry,Stay Foolish!

摘要: B - Christmas Trees https://atcoder.jp/contests/abc334/tasks/abc334_b 思路 对于起始种树点A 在 [L, R]区间的位置情况,三种 A < L A> R A>=L, A<=R Code https://atcoder.jp/con 阅读全文
posted @ 2023-12-30 19:06 lightsong 阅读(11) 评论(0) 推荐(0) 编辑
摘要: C - Socks 2 https://atcoder.jp/contests/abc334/tasks/abc334_c 思路 前后缀方法: https://zhuanlan.zhihu.com/p/673837822 其中给出了证明: 1. 对于成对的袜子参不参与凑对匹配,不影响总的色差 2. 阅读全文
posted @ 2023-12-30 19:00 lightsong 阅读(11) 评论(0) 推荐(0) 编辑
Life Is Short, We Need Ship To Travel