Skip to content

Commit

Permalink
Trailing Zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
tynnp authored Dec 25, 2024
1 parent b80640d commit 2ee141d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 27 deletions.
15 changes: 15 additions & 0 deletions CSES/Introductory Problems/1618.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <iostream>
using namespace std;

int main() {
int n, ans = 0;
cin >> n;

while (n) {
ans += n / 5;
n /= 5;
}

cout << ans;
return 0;
}
27 changes: 0 additions & 27 deletions CSES/Introductory Problems/Trailing Zeros.cpp

This file was deleted.

0 comments on commit 2ee141d

Please sign in to comment.