Chess and dice
CodeChefOpen on judge ↗
Two friend Naruto and Baruto were playing a game of Chess. And while playing somehow baruto blundered his queen and then he asked naruto if he can undo his move. Naruto gives him a chance but only on one condition if he can get $N$ consecutive $6$ by rolling the magic dice of naruto. The magic dice is a six faced biased dice numbered from $1$ to $6$ . All the numbers on the dice has equal pro
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