Billiards
CodeChefOpen on judge ↗
**BILLIARDS** is a really interesting game. It is played on a green baize with 3 balls-red, white and yellow. Sheldon and Leonard are playing a game of billiards. Sheldon is playing the game for the first time and is not familiar with the rules. So he asks Leonard to explain the rules to him. Leonard explains the rules to Sheldon in the following way: **“A Cannon shot gives $2$ points and
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