Number of zeros
InterviewTime limit1sMemory limit1024 MB
Given N and K, compute the binomial coefficient C(N,K) and count how many zero digits appear in its decimal representation.
- Level
Medium6 of 10
- Topics
- Math, Combinatorics, Implementation, Number theory
- Solved
- No attempts yet
Problem
Two integers and are given. Write a program zeros that finds the number of zeros in the decimal representation of .
is the number of different ways to choose items from distinct items, ignoring their order.
Input
The first line of the standard input contains two integers and .
Output
The first line of the standard output must contain a single integer, the number of zeros.
Constraints
Hint
The number contains two zeros.