QOJ.ac

QOJ

Type: Editorial

Status: Open

Posted by: jiangly

Posted at: 2025-12-14 07:07:54

Last updated: 2025-12-14 07:07:57

Back to Problem

题解

由 Lucas 定理知,答案为 $2^{\mathrm{popcount}(K-1)}$,其中 $\mathrm{popcount}(x)$ 表示 $x$ 二进制表示中的 $1$ 的个数。

Comments

No comments yet.