2-D Point Meeting codechef solution 100% correct solution

You are given NN distinct points in a 22-D plane, numbered 11 through NN. The X-coordinate of the points are X1,X2,…,XNX1,X2,…,XN respectively and the Y-coordinates are Y1,Y2,…,YNY1,Y2,…,YN respectively. Your goal is to make the location of all the NN points equal to that of each other. To achieve this, you can do some operations. In one operation, you choose an index i(1≤i≤N)i(1≤i≤N) and a real number KK and change the location … Read more