[BOJ 2004] 조합 0의 개수

View as PDF

Submit solution

Points: 2
Time limit: 2.0s
Memory limit: 128M

Problem types
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

$n \choose m$의 끝자리 $0$의 개수를 출력하는 프로그램을 작성하시오.

입력 형식

첫째 줄에 정수 $n$, $m$ ($0 \le m \le n \le 2,000,000,000$, $n \ne 0$)이 들어온다.

출력 형식

첫째 줄에 $n \choose m$의 끝자리 $0$의 개수를 출력한다.

예제 입력

25 12

예제 출력

2

Comments

There are no comments at the moment.