摘要:
洛谷传送门 & CF 传送门 思路 我们设 a=px+p2x+p3x+…+p⌊nx⌋⋅xa=p_x+p_{2x}+p_{3x}+\ldots+p_{\lfloor\frac{n}{x}\rfloor\cdot x}a=px+p2x+p3x+…+p⌊xn⌋⋅x,设 alen=⌊nx⌋alen 阅读全文
posted @ 2023-09-19 13:54
Vitamin_B
阅读(10)
评论(0)
推荐(0)
摘要:
洛谷传送门 & CF 传送门 思路 这道构造题我方法乱想的,分情况考虑: 当 l<rl<rl<r 时,则 l∼rl\sim rl∼r 之间肯定有一个偶数,只要选一个最大的偶数 ⌊r2⌋×2\lfloor\frac r2\rfloor\times2⌊2r⌋×2 对半分即可。特别需要注意的是,当 ⌊r 阅读全文
posted @ 2023-09-19 09:26
Vitamin_B
阅读(10)
评论(0)
推荐(0)

浙公网安备 33010602011771号