SP15565 IITKWPCL - Find Distances In A Plane
Description
Feluda loves reading city maps a lot. Now he has got a map of a city where each house is denoted with its x and y coordinate. As he is interested in estimating how good is arrangement of city, Should he would ask you these two questions.
1. What is minimum distance between any two houses ?
2. What is maximum distance between any two houses ?
Now given n points in a plane, You have to answer these two questions? As Feluda is scared by precision of decimal number representation in computers, you should tell Feluda the square of these distances.
Input Format
First line will contain n : no of houses. (n >= 2 && n
Output Format
Output one line containing squares of minimum and maximum distance respectively seperated by single space.