随笔分类 -  题解

1
摘要:题目链接:https://ac.nowcoder.com/acm/contest/59457#rank *** AB 纯暴力 C 思维题 从任意情况入手, 设highbit(x)为数x的二进制表示最高位, 则容易发现当highbit(r)大于highbit(l)时, 总能异或出从$hig 阅读全文
posted @ 2023-06-02 06:20 IHOPEIDIEYOUNG 阅读(9) 评论(0) 推荐(0) 编辑
摘要:题目链接: https://ac.nowcoder.com/acm/contest/59275#rank *** A. 枚举不讲 B. 简单二分不讲 C. 暴力是O(n2)的, 用KMP可以直接做到O(n), 贴一下代码 ``` /* Author: SJ */ #include cons 阅读全文
posted @ 2023-05-30 11:21 IHOPEIDIEYOUNG 阅读(9) 评论(0) 推荐(0) 编辑
摘要:题目链接: A https://www.luogu.com.cn/problem/P5831 B https://www.luogu.com.cn/problem/P5832 C https://www.luogu.com.cn/problem/P5832 A 分析: 范围很小, 直接暴力枚举即可, 阅读全文
posted @ 2023-05-15 02:19 IHOPEIDIEYOUNG 阅读(14) 评论(0) 推荐(0) 编辑

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