← All problemsSign in

CHEF AND BASKETBALL GAME

Problem description Recently, Chef has been playing Basketball FRVR version 2 on messenger. Its rules are as follows: It has 2 hoops. If you get through 1 of them you get A points. If you get through the other you get B points. If you consecutively use same basket your score gets reduced by C. The game lasts for n throws. (Even if chef doesn't get it through one of the hoops the game wont be fin

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