mirror of
https://github.com/tiennm99/codechef.git
synced 2026-06-11 00:13:03 +00:00
[Add] solved solutions
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
int t, a, b, c, i;
|
||||
cin >> t;
|
||||
for (i = 0; i < t; i++)
|
||||
{
|
||||
cin >> a >> b >> c;
|
||||
if (a + b + c == 180 && a > 0 && b > 0 && c > 0)
|
||||
{
|
||||
cout << "YES" << endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
cout << "NO" << endl;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user