← All problemsSign in

Ciel and Map

CodeChefRating 2084Open on judge ↗

Tomya is a girl. She loves Chef Ciel very much. Tomya writes a tetragon (see the below Notes 1 for details) in her map. The map has N points, whose coordinate are (Xi, Yi), denoting Ciel's restaurants. Each vertex of the tetragon written by Tomya is one of the Ciel's restaurants. Tomya doesn't show her tetragon in the map, but she says that she draws a long segment. To guess her tetragon, please

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start