Q Trailing Zeros
CodeChefOpen on judge ↗
You task is to find minimal natural number $N$, so that $N!$ contains exactly $Q$ zeroes on the trail in decimal notation. As you know $N! = 1*2*...*N$. For example, 5! = 120, 120 contains one zero on the trail. ###Input The only line contains one number $Q$ ($0 ≤ Q ≤ 10^8$), representing the number of trailing zeros. ###Output In the only line print "No solution", if there is no such numb
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