摘要: 原题链接 直接看代码 #include<bits/stdc++.h> using namespace std; int a[200005]={0}; int n; int check(int k) { int m=0;//任何数与零 的gcd都是其本身 for(int i=1;i<=n-k;i++) 阅读全文
posted @ 2024-01-15 19:39 纯粹的 阅读(26) 评论(0) 推荐(0)
摘要: 原题链接 题解1,种30棵树,每棵树代表每种颜色,树的每个节点代表这个颜色在对应区间上是否存在 code #include<bits/stdc++.h> using namespace std; int st[32][400005]={0}; int lazy[32][400005]={0}; vo 阅读全文
posted @ 2024-01-15 18:54 纯粹的 阅读(15) 评论(0) 推荐(0)