2024年7月4日

题解:CF437B The Child and Set

摘要: 一道贪心题。 先说结论,把 mmm 以内的数列出来,算出 lowbit⁡\operatorname{lowbit}lowbit 值,从大到小排序(后文称该数组为 fff 数组),遍历每一个 fif_ifi​,若 n≥fin\ge f_in≥fi​,则 nnn 减去 fif_ifi​,fif_ifi​ 阅读全文

posted @ 2024-07-04 13:01 zhangzirui66 阅读(8) 评论(0) 推荐(0)

导航