Klothes

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

What an unsmurfy day!  Smurfette just found out that someone (probably Jokey Smurf) has stolen all of her clothes and she'll need to buy new ones.  There are nn sets of clothes in the shop each having different integer price from 11 to nn smurfcoins. Since smurfiness of an article of clothing is proportional to its price Smurfette wants to spend all of her ss smurfcoins.  However her wardrobe will fit only kk clothes so she needs to buy exactly kk (having empty places in a wardrobe is bad for her image).

입력

First line of input file contains the number of testcases tt (t8000t \leq 8000). Each testcase consists of a single line containing three integers nn, ss, and kk (1kn40,0001 \leq k \leq n \leq 40\\,000, 0s1090 \leq s \leq 10^9). nn is the number of clothes available in the shop, kk is the number of clothes Smurfette wants to buy, and ss is the amount of smurfcoins she wants to spend.

출력

For each testcase output on a single line the word "YES" (without quotes) if it is possible to buy kk clothes so that their price is ss, or "NO" otherwise.  If the answer is "YES" then on the following line output a string of nn digits a_ia\_ia_ia\_i should be 11 if Smurfette should buy article of clothing with price ii, otherwise a_ia\_i should be 00.