#include <bits/stdc++.h> #define _xx ios_base::sync_with_stdio(0);cin.tie(0); using namespace std; typedef long long ll; int main() { ll n; cin >> n; int k = 0, m = 5, ans = 0; while(m <= n) ans += n/m, m *= 5; cout << ans << endl; return 0; }
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3