Maximize y - coordinate in all the points except current point
y2 = max ( y2 , p [ j ] [ 1 ] ) NEW_LINE ok = 1 NEW_LINE c1 = 0 NEW_LINE c2 = 0 NEW_LINE c3 = 0 NEW_LINE c4 = 0 NEW_LINE for j in range ( 1 , n * 4 + 1 , 1 ) : NEW_LINE if ( i != j ) : NEW_LINE