Even Dillema
CodeChefOpen on judge ↗
Problem description. A digit string of length K is defined as a string of K digits, for example : 7017, 1044, 0172, 3001 are digit strings where K = 4. Find the number of digit strings of length K that can be made where there will be an even number of zeros modulus 1000000007 (109 + 7) Note: Also consider 0 zero's as even. Input The first line of input consists of one integer T i.e the number
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