该文被密码保护。 阅读全文
posted @ 2022-11-07 14:45
caijianhong
阅读(0)
评论(0)
推荐(0)
摘要:
posted on 2021-02-25 18:23:15 | under 学术 | source 数组 #include <cstdio> #include <cstring> #include <algorithm> using namespace std; template<int N> st 阅读全文
posted @ 2022-11-07 14:27
caijianhong
阅读(29)
评论(0)
推荐(0)
摘要:
problem 求有多少个单调递增的整数数列,使得相邻两项对三取模的余数不相同。值域为 $[0,m]$,长度为 $n$。$n,m\leq 10^7$。 solution 考虑差分数组 $b_i=a_i-a_{i-1}$,将问题转换成: $b_1\geq 0$. $b_i>0\quad(i>1)$. 阅读全文
posted @ 2022-11-07 13:38
caijianhong
阅读(84)
评论(0)
推荐(0)
浙公网安备 33010602011771号