Roll the dice
CodeChefOpen on judge ↗
Meena is playing snake and ladders with his friends and after a while they got bored and They decided to play guessing game where they had to roll the dice and guess its outcome. Meena is very bad at guessing and failed most of the time in guessing correct outcome. While casually thinking of this game he realized that rolling a dice is totally random and winning is just factor of luck. So he dec
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