摘要:
线段树模板。 cpp typedef long long lli; template class segment_tree { typedef long long lli; int n; lli tr, tag; allocator fd; void init(); void build(int n 阅读全文
摘要:
"T1" 其实就是某种程度上的树上最长链。 "CF1105C" 设 代表数组的第 位在前 位的数字之和模 等于 时共有 种可能的取值,循环时引入 来状态转移即可。 cpp include using namespace std; typedef long long lli; constexpr in 阅读全文