The One With The Lottery
CodeChefOpen on judge ↗
Chandler has left his statistical analysis and data reconfiguration job to pursue an unpaid internship in advertising. Things haven’t been going so smoothly at the Bing’s residence after he left his job and, Chandler and Monica are facing financial problems. Monica has decided to try her luck at the “24 state lottery” where she drew the lottery $N$ times, in the $i$-th draw, she got an item each t
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