Each test contains multiple test cases. The first line contains the number of test cases(
). Description of the test cases follows.
Each test case hasintegers
(
) - the height and width of the 01-matrix, the number of elements with value
, respectively.
It is guaranteed that the sum ofover all test cases does not exceed
.
If the matrix is not existed, print a single line containing "No".
Otherwise print a line containing "Yes" and the next eachline print
integers
, which means
.
If there are multiple answers, print any.
You can print letters in any case (upper or lower).