题目描述
There are 101 citizens in Chefland. It is election time in Chefland and 3 parties, A, B, and C are contesting the elections. Party A receives X_{A} votes, party B receives X_{B} votes, and party C receives X_{C} votes.
The constitution of Chefland requires a particular party to receive a clear majority to form the government. A party is said to have a clear majority if it receives strictly greater than 50 votes.
If any party has a clear majority, print the winning party (A, B or C). Otherwise, print NOTA.
------ Input Format ------
- The first line of input contains a single integer T, denoting the number of test cases. The description of T test cases follows.
- The first and only line of each test case contains 3 space-separated integers — X_{A}, X_{B}, and X_{C}.
------ Output Format ------
For each test case, if any party has a clear majority, print the winning party (A, B or C). Otherwise, print NOTA.
You can print each letter of the string in any case (upper or lower) (for instance, strings Nota, nOtA and notA will be considered identical).
------ Constraints ------
$1 ≤ T ≤ 500$
$0 ≤ X_{A}, X_{B}, X_{C} ≤ 101$
$X_{A} + X_{B} + X_{C} = 101$
----- Sample Input 1 ------
3
80 19 2
20 55 26
50 1 50
----- Sample Output 1 ------
A
B
NOTA
----- explanation 1 ------
Test Case $1$: Party $A$ has received $80$ votes, which is strictly greater than $50$.
Test Case $2$: Party $B$ has received $55$ votes, which is strictly greater than $50$.
Test Case $3$: None of the parties have received strictly more than $50$ votes.
输入格式
见题面
输出格式
见题面