Cartesian Coordinate System
CodeChefOpen on judge ↗
Problem Description You have n distinct points on a plane, none of them lie on ordinate axis. Check that there is a point after removal of which the remaining points are located on one side of the ordinate axis. Input The first line contains a single positive integer n. The following n lines contain coordinates of the points. The i-th of these lines contains two single integersxi and yi . No t
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