- محدودیت زمان: ۱ ثانیه
- محدودیت حافظه: ۲۵۶ مگابایت
- Saman: yo! let me send you this awesome track!
- Erfan: thanks man, I’m at work now. I’ll listen to it when I get home.
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.
مثالها
ورودی نمونه ۱
خروجی نمونه ۱
ارسال پاسخ برای این سؤال