#d2874. 添加括号
添加括号
Adding Parentheses
Problem Description
You are given an expression of the form .
If evaluated directly, it is divided from left to right; for example, .
However, little feels uncomfortable seeing a fraction, and wants to add some parentheses to make it become an integer. One possible way is .
Given such an expression, determine whether you can add some parentheses to change the evaluation order so that it becomes an integer.
Input Format
There are multiple expressions in one test case.
The first line contains , the number of expressions.
For each expression, the first line is , and the second line contains numbers, the -th number being .
Output Format
Output lines.
For each expression, if you can add parentheses to change the order so that it becomes an integer, output Yes; otherwise output No.
Sample Input
2
4
1 2 1 4
5
6 5 7 9 12
Sample Output
Yes
No
Constraints
, , .