-
Notifications
You must be signed in to change notification settings - Fork 0
/
cc2.cpp
57 lines (56 loc) · 1.14 KB
/
cc2.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while (t--)
{
int arr[3];
for (int i = 0; i < 3; i++)
{
cin >> arr[i];
}
if (arr[0] == arr[1] && arr[1] == arr[2])
{
cout << "yes" << endl;
}
else if (arr[0] == arr[1] && arr[1] != arr[2])
{
if (arr[1] < arr[2])
{
cout << "yes" << endl;
}
else
{
cout << "no" << endl;
}
}
else if (arr[0] != arr[1] && arr[1] == arr[2])
{
if (arr[0] > arr[1])
{
cout << "yes" << endl;
}
else
{
cout << "no" << endl;
}
}
else if (arr[0] != arr[1] && arr[0] == arr[2])
{
if (arr[1] > arr[2])
{
cout << "yes" << endl;
}
else
{
cout << "no" << endl;
}
}
else
{
cout << "no" << endl;
}
}
}