about summary refs log tree commit diff
path: root/others/mHoang20150916/triangle.c
diff options
context:
space:
mode:
Diffstat (limited to 'others/mHoang20150916/triangle.c')
-rw-r--r--others/mHoang20150916/triangle.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/others/mHoang20150916/triangle.c b/others/mHoang20150916/triangle.c
deleted file mode 100644
index 0f5d28e..0000000
--- a/others/mHoang20150916/triangle.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <stdio.h>
-
-char angle(long x, long y, long z)
-{
-	long long tmp = x * x + y * y - z * z;
-
-	return (tmp ? (tmp > 0 ? 1 : 2) : tmp);
-}
-
-int main()
-{
-	long a, b, c;
-
-	scanf("%ld %ld %ld", &a, &b, &c);
-
-	printf("%hhd\n", angle(a, b, c) * angle(b, c, a) * angle(c, a, b));
-
-	return 0;
-}