summaryrefslogtreecommitdiff
path: root/progs/a561.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a561.py')
-rw-r--r--progs/a561.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a561.py b/progs/a561.py
new file mode 100644
index 0000000..72aba95
--- /dev/null
+++ b/progs/a561.py
@@ -0,0 +1,6 @@
+import math
+def largest_triangle(a,b):
+ if (a < 0 or b < 0):
+ return -1
+ area = (3 * math.sqrt(3) * pow(a, 2)) / (4 * b);
+ return area \ No newline at end of file