Location
CodeChefOpen on judge ↗
The state of Otahar is an agricultural nation. It consists of F farms connected by R roads. Farms in Otahar are famous for UFO sightings. Every day there are U cases of UFO sightings which are reported. When an UFO lands in a farm it leaves crop circles. After an UFO sighting is reported people flock to that particular farm to see the crop circles. This sudden interest of people in a farm makes i
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