摘要: 参考:https://www.cnblogs.com/littlehb/p/15464421.html#define lowbit(x) (x & -x) int f3(int x) { int res = 0; while (x) { x -= lowbit(x); res++; } return 阅读全文
posted @ 2025-04-15 17:49 katago 阅读(14) 评论(0) 推荐(0)
摘要: https://www.bilibili.com/video/BV1Sy421a78Chttps://github.com/algorithmzuo/algorithm-journey/blob/main/src/class102/Code02_Counting.java 阅读全文
posted @ 2025-04-15 17:47 katago 阅读(11) 评论(0) 推荐(0)
摘要: https://oi-wiki.org/graph/mst 习题可以做做https://www.luogu.com.cn/problem/P1195P1195 口袋的天空P2504 [HAOI2006] 聪明的猴子P2330 [SCOI2005] 繁忙的都市prim可视化 https://www.c 阅读全文
posted @ 2025-04-15 17:40 katago 阅读(7) 评论(0) 推荐(0)
摘要: 二进制子集枚举 https://www.acwing.com/blog/content/23501/ 从集合论到位运算,常见位运算技巧分类总结! https://leetcode.cn/discuss/post/3571304/cong-ji-he-lun-dao-wei-yun-suan-chan 阅读全文
posted @ 2025-04-15 15:03 katago 阅读(15) 评论(0) 推荐(0)