摘要: 题目链接 通过这道题,了解了标记永久化的思想,也加深了对线段树的理解~ 另外,这道题也是可以将原数组转化成差分数组做 #include <bits/stdc++.h> using namespace std; long long a[100005]; struct t1 { long long l, 阅读全文
posted @ 2024-10-16 22:08 D06 阅读(15) 评论(0) 推荐(0)
摘要: 题目链接 【调试程序】转移的时候要用原始值转移,复制一份数组或者从大到小枚举 点击查看代码 #include <bits/stdc++.h> using namespace std; int r[2000005]; int s[2000005]; int d[5005],f[5005],g[5005 阅读全文
posted @ 2024-10-16 00:10 D06 阅读(20) 评论(0) 推荐(0)
//雪花飘落效果