#P1227. [JSOI2008] 完美的对称
[JSOI2008] 完美的对称
Description
During the summit, many bodyguards are needed to protect the representatives of various countries. Besides their own personal bodyguards, the organizing committee also assigns additional agents and snipers to protect them. To make their work effective and maximize the safety of the protected person, bodyguards are deployed in all directions around the VIP.
The optimal standing positions for the bodyguards should be such that the protected person stands at the center of symmetry of all bodyguards. However, once the VIP moves, it becomes hard for the bodyguards to adjust their positions according to the VIP’s new location. Most agents cannot make this adjustment in real time.
Therefore, the Minister of Security decides to reverse the process: the bodyguards take their positions first, and then the VIP finds an appropriate position at their center of symmetry. If the VIP walks around freely, we are not responsible for his safety.
Your task is to automate this process. Given a set of points (the bodyguards’ positions), find their center of symmetry , where the VIP will be relatively safe. The definitions are as follows.
First, given a point and a center of symmetry , the point is the image of with respect to , i.e., is the midpoint of segment .
The image of a point set with respect to is the point set consisting of the images of all its points. The set admits a center of symmetry if the image of with respect to equals itself.

Input Format
The first line of input contains an integer , . Each of the next lines contains two integers and , , giving the Cartesian coordinates of the -th point in the set.
No two bodyguards will stand at the same position, so any two points in the input are distinct. Note that a bodyguard may stand at the same position as the VIP.
Output Format
Output exactly one line. If the given set admits a center of symmetry, print $\texttt{V.I.P. should stay at (}x\texttt{,}y\texttt{).}$, where and are the coordinates of the center, rounded to one decimal place.
If the set has no center of symmetry, output This is a dangerous situation!. Make sure there is exactly one space between words and no extra spaces.
8
1 10
3 6
6 8
6 2
3 -4
1 0
-2 -2
-2 4
V.I.P. should stay at (2.0,3.0).
Hint
JSOI2008 Round 2.
Translated by ChatGPT 5
京公网安备 11011102002149号