StatWiz and The Ball Choosing Problem
CodeChefOpen on judge ↗
Problem description You are friends with the most accomplished Statistical Wizard of Qwan named Regressia. You invited Regressia to a party at your place. She likes giving statistical problems to humour her friends at parties. She gives you a box full of NR red, NG green, NB blue and NU uncoloured balls. The total number of balls is N. Then she gives a list of positive integers and asks you calcu
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