Split the number
CodeChefOpen on judge ↗
You are given a number $N$ and a number $S$. You have to split the number $N$ into $S$ numbers by splitting $N$ at given indexes and the n multiply the numbers formed after splitting. Sum of all the digits of $S = sizeof(N)$ The multiplication results may get very large based on the inputs, in that case, compute ans%1000000007 ### Input: $T$ test cases. Each test case contains two
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