FACTORIAL
CodeChefOpen on judge ↗
Factorial of a positive number is defined as the product of all the numbers from 1 to that number . In this problem , you need to print the number of trailing zeros's in the binary representation of factorial n Input : first line contains t (<101), number of test cases and next t lines contains decimal numbers between 1 and 10,00,000 Output: t lines , each line a decimal number , that is
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start