diff --git a/solutions/beecrowd/1043/1043.py b/solutions/beecrowd/1043/1043.py new file mode 100644 index 00000000..140094f3 --- /dev/null +++ b/solutions/beecrowd/1043/1043.py @@ -0,0 +1,9 @@ +import sys + +for line in sys.stdin: + a, b, c = map(float, line.split()) + + if a < b + c and b < a + c and c < a + b: + print(f'Perimetro = {a + b + c:.1f}') + else: + print(f'Area = {c * (a + b) / 2:.1f}')