Пак Тимур Павлович, 425 TriangleSquare 5607 | Александр Репин, 528 группа TriangleSquare 5539 | ||||
---|---|---|---|---|---|
f | 1 | import decimal | f | 1 | import decimal |
n | 2 | decimal.getcontext().prec = 500 | n | 2 | decimal.getcontext().prec = 200 |
3 | x1, y1, x2, y2, x3, y3 = map(decimal.Decimal, input().split(',')) | 3 | x1, y1, x2, y2, x3, y3 = map(decimal.Decimal, input().split(',')) | ||
t | 4 | square = abs((x2 - x1) * (y3 - y1) - (x3 - x1) * (y2 - y1)) / 2 | t | 4 | area = abs((x2 - x1) * (y3 - y1) - (x3 - x1) * (y2 - y1)) / 2 |
5 | print(square) | 5 | print(area) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|