← All problemsSign in

Poke Dice

There are $N$ pokemon in a class, each pokemon is given 2 fair dice. One of the dice contains : 2, 7, 12, 17, 22 & 27 and the other dice contains : 3, 8, 13, 18, 23 & 28. The pokemon are asked to throw both the dice $M$-times and sum up whatever comes each time on both the dice and add all the outcomes. You ask each pokemon the sum of all the outcomes but strangely some of them are lying.

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start