Better Count Zeroes
CodeChefOpen on judge ↗
You are given N integers, denoted by A1, A2, … , AN Now you are given Q queries, each of whom is of following two types: Type 1: 1 L R: Print the no. of trailing zeros (zeros in the end) in the multiplication of no.s in range [L,R] of array ‘A’, i.e. no. of zeros in AL * AL+1 * … * AR Type 2: 2 L R V: Multiply the all the numbers in range [L,R] with V. Input: First line contains a single
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