May The Force Be With You!
CodeChefOpen on judge ↗
Chewbacca needs a droid to accompany him to Tatooine. C3PO feels that he would be a better choice(being well versed in over 5 million languages) but R2D2 is adamant that he will accompany Chewbacca to save Han Solo from the evil crime lord Jabba the Hutt. To decide who will go, they agree on playing Roll the Dice game 'n' times. In a turn, both of them roll a dice and score a positive number b
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