Dicy Sequence
CodeChefOpen on judge ↗
###Problem Statement: You are challenged to a dice game , however the dice you are given is rigged. There are 6 digits on the dice `1,2,3,4,5,6` and the maximum times they can be consecutively rolled is `A(1),A(2),A(3),A(4),A(5),A(6)` respectively. You can roll the dice `N` times and you have to tell the number of unique sequences that can be possibly obtained. Print the answer modulo `10^9
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