WORLD CUP
CodeChefOpen on judge ↗
Sachin is in great form, and he is playing exceptionally well, given that this is his last world cup. But his fans, who always want the best for him, have suggested him to not to score 3 runs on any ball. Indian cricket and their superstitions. So, Tendulkar, being the gentlemen he always is, has agreed to score either 1, 2, 4 or 6 runs per ball. Assuming that he will score on each and every ball,
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