---
# System prepended metadata

title: '【題解】c294: APCS-2016-1029-1 三角形辨別'
tags: [Zerojudge]

---

###### tags: `Zerojudge`
【題解】c294: APCS-2016-1029-1 三角形辨別
===
Posted on 2022/4/25 | By : Victoria1103
【題目敘述】https://zerojudge.tw/ShowProblem?problemid=c294



```cpp=
#include <iostream>
#include <algorithm>
using namespace std;
int main ()
{
	int a[3];
	while (cin>>a[0]>>a[1]>>a[2])
	{
	sort (a , a+3);
	cout << a[0] << " " << a[1] << " " << a[2]<<endl;
	if (a[0] + a[1] <= a[2])
	{
	 cout << "No" <<endl;
    }
    else if (a[0]*a[0] + a[1]*a[1] < a[2]*a[2])
    {
    cout << "Obtuse" <<endl;
	}
	else if (a[0]*a[0] + a[1]*a[1] == a[2]*a[2])
	{
	cout << "Right" <<endl;
	}
	else if (a[0]*a[0] + a[1]*a[1] > a[2]*a[2])	
	{
	cout << "Acute" <<endl; 
	}
	}
	return 0;	
}