题目描述
Mance Rayder, the King-Beyond-the-Wall, has always wanted to lead the largest army the North has ever seen against the NIght’s Watch. For this humungous feat he has banded the waring tribes, the Giants, Thenns and Wildings, together by going to great extents. But the King is facing with an issue he always saw it coming.
The huge army is divided into smaller divisions and each division can be of the type $G, T$ or $W$ standing for Giants, Thenns and Wildings respectively. Mance doesn’t want two divisions of the same type standing together as he fears it might lead to a mutiny or an unorganised charge or retreat.
For a given numbers of $G, T$ and $W$, find whether an army can be organised in accordance to the rules set by Mance. Not to forget that Mance has to include all the divisions in his battle formation in order to stand a chance against the Wall’s defences.
-----Input:-----
- First line will contain $N$, the number of test cases.
- Each of the next $N$ lines will contain three integers $G$, $T$ and $W$ - the number of Giant, Thenn and Wildling divisions respectively.
-----Output:-----
For each testcase, output in a single line $Yes$ if a battle formation is possible or $No$ otherwise.
-----Constraints-----
- $1 \leq N \leq 100$
- $1 \leq G,T,W \leq 10^9$
-----Sample Input:-----
1
1 2 1
-----Sample Output:-----
Yes
-----Explanation:-----
The first case can be formed as : $ TGWT $. Hence the answer is $ Yes $.
输入格式
见题面
输出格式
见题面