Лукьянов Артём Васильевич, 317, Севастопольский филилал TriangleSquare 3484
Dimitry TriangleSquare 3457
t1from decimal import Decimal, getcontextt1from decimal import Decimal, getcontext
2import re2import re
3getcontext().prec = 4003getcontext().prec = 400
4s = input().strip()4s = input().strip()
5numbers = [x.strip() for x in re.split('\\s*,\\s*', s) if x.strip()]5numbers = [x.strip() for x in re.split('\\s*,\\s*', s) if x.strip()]
6numbers = [Decimal(x) for x in numbers]6numbers = [Decimal(x) for x in numbers]
7x1, y1, x2, y2, x3, y3 = numbers7x1, y1, x2, y2, x3, y3 = numbers
8area = abs((x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2)) / Decimal(8area = abs((x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2)) / Decimal(
>2))>2))
9if area == area.to_integral():9if area == area.to_integral():
10    print(area.to_integral())10    print(area.to_integral())
11else:11else:
12    s = format(area, 'f')12    s = format(area, 'f')
13    s = s.rstrip('0').rstrip('.') if '.' in s else s13    s = s.rstrip('0').rstrip('.') if '.' in s else s
14    print(s)14    print(s)
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op