cses

My solution for the coding challenges of cses.fi
git clone https://git.tronto.net/cses
Download | Log | Files | Refs | README

trailing_zeros_1618.cpp (128B)


      1 #include <iostream>
      2 
      3 int main() {
      4 	int n, c{0};
      5 	std::cin >> n;
      6 	while (n > 0)
      7 		c += (n /= 5);
      8 	std::cout << c << std::endl;
      9 }