팩토리얼 0의 개수

BiBi·2021년 1월 21일
0

코딩테스트연습

목록 보기
55/66
#include <algorithm>
#include <iostream>
#include <stdio.h>
#include <vector>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <string>
#include <cmath>
#include <time.h>
using namespace std;


int main() {
	//freopen("input.txt", "rt", stdin);

	int num;

	scanf("%d", &num);

	
	printf("%d", (num/5)+(num/25)+(num/125));
	


	return 0;
}
profile
Server Network Engineer

0개의 댓글