COLOURS AT RED WEDDING
CodeChefOpen on judge ↗
Its the time for $RED$ $WEDDING$. In the wedding, guests are welcomed by giving a $coloured$ $drink$. $CHEF$ is present in the wedding. CHEF is curious about probability of more than one people being offered the drinks with same $colour$. As you know, in some time, everything is going to be painted $RED$, you need to help CHEF to answer his question as early as possible so that he can escape
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