摘要: 原题传送门 线段树裸题 #include<bits/stdc++.h> using namespace std; const int maxn=100010; int a[maxn+2]; struct tree{ int l,r;//[l,r]这条线段 long long pre,add;//pr 阅读全文
posted @ 2021-11-07 20:21 遥望未来weilai 阅读(31) 评论(0) 推荐(0)
摘要: 原题传送门 等于说在求n=a+b+c+d+...(a<=b<=c...)的划分数,其中abcd各是某组平行线的数量,它们两两不平行。 数据规模比较小,直接递归求就行,thre是threshold的缩写,阈值 #include<bits/stdc++.h> using namespace std; b 阅读全文
posted @ 2021-11-07 20:14 遥望未来weilai 阅读(87) 评论(0) 推荐(0)