摘要: 题目传送门 前置芝士 二项式定理:\((a+b)^n=\sum \limits_{i=0}^{n}C^i_n\times a^i\times b^{n-i}\) 快速幂 Meaning 有 \(n\) 种珠子,每种有 \(a_i\) 颗,且美丽值为 \(v_i\)。任意两颗珠子不同(同种类也算不同) 阅读全文
posted @ 2024-02-26 21:13 sLMxf 阅读(88) 评论(2) 推荐(2)