about summary refs log tree commit diff
path: root/others/mHoang/triangle.c
blob: 0f5d28edf574e9bf3f4ba7b57ca3210577220b90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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;
}