407725: GYM102881 N Baby !Ehab

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

N. Baby !Ehabtime limit per test1 secondmemory limit per test256 megabytesinputequal.inoutputstandard output

Baby !Ehab found this problem really hard: given 3 numbers, check if at least 2 of them are equal.

Input

The first line contains an integer $$$T$$$, the number of testcases.

The next $$$T$$$ lines, each contains 3 positive numbers. The numbers are between $$$1$$$ and $$$20$$$.

Output

For each testcase, print "YES" if at least 2 of the 3 numbers are equal, "NO" otherwise.

ExampleInput
2
1 2 2
2 10 20
Output
YES
NO

Source/Category

加入题单

算法标签: