Guess the triangle
Practice
3.4 (181 votes)
Geometry
Open
Approved
Easy
Problem
74% Success 3077 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code
You are given 3 points - middles of the sides of some triangle. Find coordinates of the triangle vertices.
Input
Input has 3 lines with 2 space-separated reals each - coordinates of the middles of the sides.
Output
Output 3 lines with 2 space-separated reals - coordinates of the triangle vertices. Each number should have exactly 4 digits after dot. Vertices should be sorted in first coordinate ascending order. If two points have the same first coordinate than they should have second coordinate ascending order.
Constraints
0 <= xi, yi <= 1000
Code Editor
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
6 votes
Tags:
GeometryMathematicsOpenApprovedEasy
Points:20
1 votes
Tags:
GeometryImplementationEasyMath
Editorial
Login to unlock the editorial
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Results
Custom Input
Run your code to see the output