This commit is contained in:
2024-06-01 23:50:25 +02:00
parent ca126c7a0a
commit 5f6b389ee3
8 changed files with 188 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
// Trailing Zeros
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int count = 0;
ll n; cin >> n;
for (int i = 1; i <= 15; i++) {
count += n / pow(5, i);
}
cout << count;
return 0;
}