Chocolate Division
CodeChefOpen on judge ↗
Alice and Bob have received some chocolates as a gift. There are two types of chocolates: some are shaped like spheres, and others are shaped like sticks. Each chocolate stick connects a pair of chocolate spheres. They want to divide these chocolates among themselves with the following preferences: - Alice wants all the chocolate spheres she gets to be connected by sticks. That is, for any two sp
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