牛客练习赛48 部分题解
B. 小w的a=b问题思路:把阶乘hash就行#include<bits/stdc++.h>#define ll long longusing namespace std;const int maxn = 1e5 + 10, N = 1e5;const int mod1 = 1e9 + 7, mod2 = 998244353;ll p1[maxn], p2[maxn]...