new file: P17554.cpp

This commit is contained in:
hanyixuanten committed 2026-10-01 23:48:05 +08:00
1 parent 4424b31785
commit f306e6c0a1
2 files changed
+163

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#include <bits/stdc++.h>
using namespace std;
int t;
long long n;
int main()
{
scanf("%d", &t);
while (t--)
{
scanf("%lld", &n);
while (n % 2 == 0)
n /= 2;
while (n % 5 == 0)
n /= 5;
int cnt = 0;
while (n)
{
n /= 10, cnt++;
}
printf("%d\n", cnt);
}
return 0;
}