Dessert Party
CodeChefOpen on judge ↗
Inspired by the success of their Backyard Beach party, Ph and F decided to follow it up with a Dessert party. There are a total of $N$ participants in the party each of whom like to eat 2 dessert varieties and they eat only those 2 varieties. Each variety is indicated by a value. Whenever a person goes he may eat 1. Zero desserts, because his favourite varieties are not there. 2. One of his f
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