随笔分类 -  FWT

摘要:洛谷传送门 CF 传送门 UNR #2 黎明前的巧克力。 枚举两个人选的卡的并集 S,那么当 iSai=0S 有贡献 2|S|。 考虑将 2|S| 分摊到每个元素上,也就是每个元素有 \ 阅读全文
posted @ 2023-12-25 18:39 zltzlt 阅读(31) 评论(0) 推荐(0) 编辑
摘要:QOJ 传送门 考虑从低位向高位 dp,设 fi,S 为考虑到从低到高第 i 位,当前每个数超出上界的情况为 S。 转移可以枚举这一位填的数: 若 aj=0,rj=1,那么这一位一定不会超出上界; 若 aj=1,rj=0,那 阅读全文
posted @ 2023-09-25 11:37 zltzlt 阅读(31) 评论(0) 推荐(0) 编辑
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc220_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc220/tasks/abc220_h "AtCoder 传送门") 看到数据范围猜复杂 阅读全文
posted @ 2023-06-18 19:58 zltzlt 阅读(9) 评论(0) 推荐(0) 编辑
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc215_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc215/tasks/abc215_h "AtCoder 传送门") 考虑第一问。 发现 阅读全文
posted @ 2023-06-14 13:31 zltzlt 阅读(14) 评论(0) 推荐(0) 编辑
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc132_f "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc132/tasks/arc132_f "AtCoder 传送门") 没见过这种在新运算 阅读全文
posted @ 2023-05-24 12:50 zltzlt 阅读(14) 评论(0) 推荐(0) 编辑
摘要:洛谷传送门 AtCoder 传送门 牛逼题…… 考虑如果定义 xa×xb=xab,设 f(x)=i=1kxai,那么题目就是求,$\forall w > 0, \sum\limits_{i=1}^n (f 阅读全文
posted @ 2023-05-18 13:14 zltzlt 阅读(20) 评论(0) 推荐(0) 编辑
摘要:### 公式 普通 min-max 容斥: maxiSai=TST(1)|T|1minjTaj $$\min 阅读全文
posted @ 2022-11-16 11:31 zltzlt 阅读(267) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示