Problem H
Goofy Geometry
Latkas Coolacek doesn’t really like doing his mathematics homework, he prefers partying with his algorithm buddies and finding shortest paths in the city. Unfortunately, his teachers aren’t as happy with Latkas ignoring school. Thus, they have given him the worst assignment there is; boring, mindless geometry calculations!
The task given to Latkas is:
Consider a point
Since nobody should have to suffer through an assignment this sadistic, you offered to write a program which makes Latkas’ homework automatically. In exchange, since Latkas is such a good friend, he will make you 20% cooler.
Input
The first line of input consists of a single integer
Then follow
Output
Output should consist of
The coordinates must be formatted “(
Output will be considered correct if all the coordinates are
within a relative or absolute error of
Sample Input 1 | Sample Output 1 |
---|---|
4 4 3 -4 3 4 -3 -4 -3 |
(-2.096163282,4.427877538,4.898979486,-3.663836718,3.252122462,-4.898979486) (-3.663836718,-3.252122462,4.898979486,-2.096163282,-4.427877538,-4.898979486) (3.663836718,3.252122462,4.898979486,2.096163282,4.427877538,-4.898979486) (2.096163282,-4.427877538,4.898979486,3.663836718,-3.252122462,-4.898979486) |