diff --git a/CSES/Introductory Problems/1618.cpp b/CSES/Introductory Problems/1618.cpp new file mode 100644 index 00000000..bb393f68 --- /dev/null +++ b/CSES/Introductory Problems/1618.cpp @@ -0,0 +1,15 @@ +#include +using namespace std; + +int main() { + int n, ans = 0; + cin >> n; + + while (n) { + ans += n / 5; + n /= 5; + } + + cout << ans; + return 0; +} \ No newline at end of file diff --git a/CSES/Introductory Problems/Trailing Zeros.cpp b/CSES/Introductory Problems/Trailing Zeros.cpp deleted file mode 100644 index c8d8e136..00000000 --- a/CSES/Introductory Problems/Trailing Zeros.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include -using namespace std; - -#define endl '\n' -#define int long long -#define inp freopen("file.inp", "r", stdin) -#define out freopen("file.out", "w", stdout) -#define TIME 1.0*clock()/CLOCKS_PER_SEC -#define fastIO ios_base::sync_with_stdio(0); cin.tie(0) - -const int MAXN = 1e6 + 5; -const int MOD = 1e9 + 7; - -int n, ans; - -signed main() { - fastIO; - cin >> n; - - while (n) { - n /= 5; - ans += n; - } - - cout << ans; - return 0; -} \ No newline at end of file