CF1850A To My Critics

题目描述

Suneet有三个数字 $ a , b $ 和 $ c $。 由于数学不是他的强项,他请你判断是否可以选择任意两个数字使它们的和大于或等于 $ 10 $。 如果存在这样一对数字,输出 `YES`;否则,输出 `NO`。

输入格式

第一行包含一个整数 $ t (( 1 \leq t \leq 1000 $)——测试用例的数量。 每个测试用例仅包含三个数字 $ a , b , c (( 0 \leq a, b, c \leq 9 $)。

输出格式

对于每个测试用例,如果存在这样一对数字,输出 `YES`;否则,输出 `NO`。 Translated By @[ZeXic_B](https://www.luogu.com.cn/user/661274)

说明/提示

For the first test case, by choosing the digits $ 8 $ and $ 2 $ we can obtain a sum of $ 8 + 2 = 10 $ which satisfies the condition, thus the output should be "YES". For the second test case, any combination of chosen digits won't be at least $ 10 $ , thus the output should be "NO" (note that we can not choose the digit on the same position twice). For the third test case, any combination of chosen digits will have a sum equal to $ 18 $ , thus the output should be "YES".