题解发布于 CSND 😋 奉上 C++ 代码 #include <bits/stdc++.h> using i64 = int64_t; using u64 = uint64_t; using f64 = double_t; using i128 = __int128_t; template<class T> constexpr T power(T a, i64 b) { T res = 1; for (; b; b /= 2, a *= a) { if (b % 2) { res *= a; ...