لینکهای مفید برای شرکت در مسابقه:
در طول مسابقه، میتوانید سؤالات خود را از قسمت «سؤال بپرسید» مطرح کنید.
Erfan is going to a trip for Norooz holidays and wants to enjoy some music of a genre named “Khaltoor” on his way. He wants to ask his friend Saman to make a CD for him containing this type of music. The CD has maximum capacity of minutes. Saman has music tracks and needs your help to write maximum number of tracks into the CD.
In the first line there will be an integer indicating the number of test cases.
Each test case begins with two integers and indicating the number of tracks and the capacity of the CD.
The following lines containing an integer indicating the length of each track.
For each test case, print an integer indicating the maximum number of tracks that Saman can write on the CD.