From 8ba3ea7879ab77dda63e8ef733c23dd16b82f1b1 Mon Sep 17 00:00:00 2001 From: Denis Costa Date: Wed, 20 Nov 2024 12:43:23 -0300 Subject: [PATCH] Solve Building Houses in python --- solutions/beecrowd/1541/1541.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 solutions/beecrowd/1541/1541.py diff --git a/solutions/beecrowd/1541/1541.py b/solutions/beecrowd/1541/1541.py new file mode 100644 index 00000000..30b6afe0 --- /dev/null +++ b/solutions/beecrowd/1541/1541.py @@ -0,0 +1,9 @@ +import math +import sys + +for line in sys.stdin: + if line.startswith('0'): + break + + a, b, c = map(int, line.split()) + print(f"{math.floor(math.sqrt((100 * a * b) / c))}")