Joes Arrangement
CodeChefOpen on judge ↗
Cisco is out of his senses and needs some refreshment. So he decided to solve a puzzle given by Detective Joe. Joe gave him 4 boxes having different colour of balls having red balls in box 1 , blue in box 2 , green in box 3 and white in box 4 . Let count of balls in red box be R , in blue be B , in green be G and in white be W . Joe then mark all the red balls with integers from 1 to R , similarly
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