Chef and Kanishk
CodeChefOpen on judge ↗
Chef knows what a dangerous batsman Kanishk is. The bigger problem is that Chef and his team have no idea about the weakness of Kanishk. But their coach tells them Kanishk’s trick of scoring runs is that he scores more off a bowler having less deliveries left. For instance, if there are four bowlers -- with 16,15,6,7 balls to be bowled respectively, then Kanishk’s trick would be to score maximu
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