acmsguru |
---|
Закончено |
n x1,1 y1,1 ... x1,n y1,n x2,1 y2,1 ... x2,n y2,nThe first line of the input contains a positive integer n (n ≤ 1000). The next n lines contain two real numbers x1,i and y1,i (|x1,i|, |y1,i| ≤ 100), where (x1,i, y1,i) denotes the coordinates of the i-th star of the constellation in the first photo. The next n lines contain two real numbers x2,i and y2,i (|x2,i|, |y2,i| ≤ 100), where (x2,i, y2,i) denotes the coordinates of the i-th star of the constellation in the second photo. Note that the ordering of the stars does not matter for the sameness. It is guaranteed that distance between every pair of stars in each photo is larger than 10-5.
sample input | sample output |
3 0.0 0.0 1.0 1.0 0.0 1.0 3.0 3.0 2.0 2.0 3.0 2.0 | 3.14159265359 |
Название |
---|