本文共 919 字,大约阅读时间需要 3 分钟。
int sum=0;while(N){ sum+=(N/5); N/=5;)
#pragma GCC optimize(2)#includeusing namespace std;#define pi acos(-1.0)#define e exp(1.0)typedef long long unsigned ll;const ll maxn=5e7+7;ll N,M;ll Han(ll n){ ll i,j; while(n%2==0) { M++; n/=2; } while(n%5==0) { M--; n/=5; } return n;}ll Pow_mod(ll a,ll b){ ll mul=1; while(b) { if(b&1) mul=mul*a%10; a=a*a%10; b>>=1; } return mul; } int main(){ // freopen(".../.txt","w",stdout); ios::sync_with_stdio(false); while(cin>>N) { if(N==1)//特判 { cout<<"1"<
转载地址:http://qjph.baihongyu.com/