{"problem":{"name":"072. Tri-Angle","description":{"content":"Given the three points that represent the corners of an isosceles triangle, determine the angle that the triangle is pointing. The angle can be calculated based on the vector created along the line of","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF10269072"},"statements":[{"statement_type":"Markdown","content":"Given the three points that represent the corners of an isosceles triangle, determine the angle that the triangle is pointing. The angle can be calculated based on the vector created along the line of symmetry of the triangle that exits through the point of the triangle. The angle should be represented in degrees and should be determined relative to the vector (1,0). The following image shows a triangle with points at (-1,0), (0,1), and (-2,2), and has an angle of 135 degrees. \n\nEach line contains two space-separated floating point values that represent the $x$ and $y$ values of each point of the triangle. They are randomly ordered.\n\nA single floating point value that represents the degree measure of the angle created from the positive x-axis to the direction of the triangle.\n\nMake sure answers are provided in degrees and fall within the range of 0 to 360.\n\n## Input\n\nEach line contains two space-separated floating point values that represent the $x$ and $y$ values of each point of the triangle. They are randomly ordered.\n\n## Output\n\nA single floating point value that represents the degree measure of the angle created from the positive x-axis to the direction of the triangle.\n\n[samples]\n\n## Note\n\nMake sure answers are provided in degrees and fall within the range of 0 to 360.","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"**Definitions**  \nLet $ P = \\{A, B, C\\} \\subset \\mathbb{R}^2 $ be a set of three distinct points forming the vertices of an isosceles triangle.  \n\n**Constraints**  \n1. The triangle is isosceles: exactly two sides have equal length.  \n2. The apex (vertex opposite the base) is the point where the two equal sides meet.  \n3. The line of symmetry passes through the apex and the midpoint of the base.  \n4. The direction vector $ \\vec{v} $ is defined as the vector from the midpoint of the base to the apex.  \n5. The angle $ \\theta $ is measured counterclockwise from the positive x-axis $ (1,0) $ to $ \\vec{v} $, normalized to $ [0^\\circ, 360^\\circ) $.  \n\n**Objective**  \nCompute:  \n$$\n\\theta = \\operatorname{atan2}(v_y, v_x) \\cdot \\frac{180}{\\pi} \\mod 360\n$$  \nwhere $ \\vec{v} = \\text{apex} - \\text{midpoint of base} $, and the apex is identified as the vertex equidistant to the other two.","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF10269072","tags":[],"sample_group":[],"created_at":"2026-03-03 11:00:39"}}