Chef Ash
CodeChefOpen on judge ↗
Chef Ash wants a new game. He has created his own spin-off of a Bowling Alley. He takes a rectangular area of edge mxn. This rectangle has mxn cells in it. Each cell may have either a bumper or a bowling pin. The ball may be rolled in any of the Four directions(input uses this notation 0=north, 1=east, 2=south, 3=west,) with any speed. Calculate the points scored subject to the following rules:
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