输入n,m求n!在m进制下末尾0的个数。n, m<1e18 #include<bits/stdc++.h> #define LL long long using namespace std; int prime[]={0, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97}; LL ind[105], cnt[105]; LL getcnt(LL x, LL n){//计算1-n中所有质因子x的总和个数 LL res=0;...