牛客小白月賽23 B.階乘

B.階乘ios 思路:其實就是把p質因數分解,而後對於每個質因數x,去二分出來最小的一個n!含有x的個數大於等於p中的x的個數 對於每一個二分的結果取最大值c++ #include<bits/stdc++.h> using namespace std; typedef long long ll; #define me(a,x) memset(a,x,sizeof a) #define rep(i,
相關文章
相關標籤/搜索