| JPC 1.0 |
|---|
| Finished |
Man is trying so hard to become the boss, so he is always trying to beat Juan in any game, this time he came up with the following game.
Man will give Juan two integers $$$n$$$ and $$$m$$$, for Juan to win he should create an array $$$a$$$ with the following constrains:
Again, Ahmad is really busy so you should help Juan create the array or tell him it's not possible.
The first line is the number of test cases $$$t$$$ $$$(1 \leq t \leq 10^5)$$$.
The next $$$t$$$ lines each contains two integers $$$n$$$ $$$(1 \leq n \leq 10^5)$$$, and $$$m$$$ $$$(1 \leq m \leq 10^6)$$$.
It's guaranteed that the sum of $$$n$$$ over all test cases is not greater than $$$3\times10^5$$$.
For each test case, if there is an answer print "YES" followed by the array on the next line, otherwise print "NO".
3 3 5 3 4 3 6
YES 4 3 4 YES 3 2 1 YES 1 2 5
2 3 2 4 5
NO YES 4 4 3 1
| Name |
|---|


