摘要:
## [$10117$. 「一本通 $4.1$ 练习 $2$」简单题](https://loj.ac/p/10117) #### 题目解析 区间修改+单点查询,用树状数组维护差分数组,从而记录每个点反转的次数。最后单点查询点反转的次数%2即为应得值。 ### $Code$ ```cpp {.line 阅读全文
posted @ 2023-08-14 16:30
糖豆爸爸
阅读(29)
评论(0)
推荐(0)
摘要:
## [$P3374$ 【模板】树状数组 1](https://www.luogu.com.cn/problem/P3374) ```cpp {.line-numbers} #include using namespace std; const int N = 5 * 1e5 + 10; int n 阅读全文
posted @ 2023-08-14 16:24
糖豆爸爸
阅读(27)
评论(0)
推荐(0)
摘要:
## [$P2345$ 奶牛集会](https://www.luogu.org/problemnew/show/P2345) ### 一、题目描述 约翰的$N$头奶牛每年都会参加 **哞哞大会**。哞哞大会是奶牛界的盛事。集会上的活动很多,比如堆干草,跨栅栏,摸牛仔的屁股等等。它们参加活动时会聚在一 阅读全文
posted @ 2023-08-14 16:19
糖豆爸爸
阅读(38)
评论(0)
推荐(0)