Space Adventure
CodeChefOpen on judge ↗
JAYPEE SPACE ADMINISTRATION (JSA) in 2013 decided to send Chef Po to the planet Jupiter’s moon. When he landed on the moon he saw a very hap-hazard township which was developed by their civil alienoic engineers which existed on that moon. There were exactly N number of houlien(houses where aliens lived), each houlien is denoted by a number 1 to N. Total (N-1) number of roads existed on the moon su
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