← All problemsSign in

Point Domination

Given n points in 3-dimensional space having integral co-ordinates, determine for each point, the number of points dominated by the particular point. A point P1(x1, y1, z1) is said to be dominated by a point P2(x2, y2, z2) iff: x1 Input The first line contains a single integer, the value of n. n lines follow, ith of these lines contain the x, y and z co-ordinates, in that order, of the ith p

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