← All problemsSign in

Cricket

Lisa is a cricket buff and she is pretty good at predicting the outcomes in a ball. She tests her hand at betting and is pretty successful at that. Once, in the second innings of a match, the team needed to score N runs in the last over to win, and she was able to predict the exact ongoing of the over.She wants to know how many different outcomes were actually possible so that she can feel good ab

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