← All problemsSign in

Chef and LBW

ICC Cricket World Cup 2019 is coming, so our Chef became interested in being an umpire. Chef has trouble when he has to decide leg before wicket appeals. So, your job is to train him. You are given that, LBW should be given out only if all of the following conditions hold - 1. The delivery should be fair. 2. Ball should not hit bat before the pad. 3. Ball should be pitched in the line of leg st

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