05 2021 档案
摘要:给定长度 \(n\) 的序列 \(a\),\(m\) 个操作: 对于区间 \([l,r]\) 中的大于 \(x\) 的数减去 \(x\) 查询区间 \([l,r]\) 中等于 \(x\) 的数的个数 \(a_i\le 10^5,n,m\le 10^5\) 看到值域相当小,于是可以在这上面入手 考虑对
阅读全文
摘要:test test test test test test test test test test test test test test test test test test test test test test test ;sjf klshanfd akioi ;sjf klshanfd a
阅读全文
摘要:FFT:https://www.luogu.com.cn/problem/P3803 NTT:https://www.luogu.com.cn/problem/P4245 日常抄 oi-wiki FFT 多项式乘法对多项式的系数向量进行卷积:\(\sum_{i=1}^{n+m}\sum_{j=1}^
阅读全文
摘要:Coloring Torus AGC030C:https://www.luogu.com.cn/problem/AT4512 考虑如果 \(k\le n\),那么直接一行一种颜色就行了 如果 \(k>n\),考虑可以转化为在对角线上染色,由于这个相邻的定义是循环的,所以合法: 但这样仍然只能构造最多
阅读全文

浙公网安备 33010602011771号