Stay Hungry,Stay Foolish!

摘要: B - Ticket Counter https://atcoder.jp/contests/abc358/tasks/abc358_b 思路 第i个完成的时刻,done[i] 跟第i-1完成时间done[i-1]有关系, 第i个的开始时刻t[i] 大于 done[i-1], done[i] = t 阅读全文
posted @ 2024-06-16 22:51 lightsong 阅读(8) 评论(0) 推荐(0) 编辑
摘要: C - Popcorn https://atcoder.jp/contests/abc358/tasks/abc358_c 思路1 -- 枚举法 遍历stands的所有组合, 对于每一种组合,判断是否满足全部的flavors, 满足则更新最小stands记录, stands所有组合: 0 s1 s2 阅读全文
posted @ 2024-06-16 11:50 lightsong 阅读(55) 评论(0) 推荐(0) 编辑
Life Is Short, We Need Ship To Travel