The Octopus
CodeChefOpen on judge ↗
An Archaeopteryx and its family want to spend their weekend at Adventure Island. They see an Octopus ride. They want to enjoy it. However, there are some problems (as usual). Each family member likes some other person in the family. Each member insists that he/she will go on the ride only if all the people whom that person likes and all the people who like him/her also go on the ride. But if he/sh
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