果然是练思维呀!!要是我的话估计就能挨个算一算呜呜呜 分解成 2和5相乘的式子 #include <iostream> using namespace std; //快速幂运算 int main(){ int data[]={}; int num2=; int num5=; for (int i = ; i < ; ++i) { while(!(data[i]%)){ data[i]/=; num2++; } while(!(data[i]%)){ data[i]/=; num5++;…
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1124 思路:每五个数1个0,5个5就2个0(不用管2,一定充足) #include<iostream> #include<cstdio> #include<cmath> using namespace std; typedef long long LL; int main(void) { LL n,j; int tim,ans,t,i; scanf("%d&quo…