#P12904. [NERC 2020] Equilibrium Point /\/\
[NERC 2020] Equilibrium Point /\/\
题目描述
Consider a balanced bracket sequence with one type of brackets: and .
There is a common geometrical representation of such a sequence. Starting at the point , you draw a polyline, for each bracket moving along a vector if it is an opening bracket, and along if it is a closing bracket.
Consider an area between this curve and the line . It is a set of polygons. This area has its center of mass at some point . Note that the center of mass might be outside of the area.
You are to solve the reverse problem. Given the length and a point , find any balanced bracket sequence of length such that the center of mass of its geometrical representation is located at .
输入格式
The first line contains three numbers , , and ( is an even integer, ; ) --- the length of the desired sequence and the coordinates of the desired center of mass.
It is guaranteed that is the center of mass of some balanced bracket sequence of length , with Euclidean-distance error of no more than .
输出格式
Output a balanced bracket sequence with brackets and of length such that the center of mass of its geometrical representation is located at the point , with Euclidean-distance error of no more than .
6 3.4 0.6
()(())