#include using namespace std; using Int=long long; using Real=long double; templateinline bool chmin(T&A,S B){if(A>B){A=B;return true;}else{return false;}} templateinline bool chmax(T&A,S B){if(A>N>>M; REP(i,N)cin>>C[i]; sort(C,C+N); int ans=0; REP(i,N)if(M>=C[i])M-=C[i],++ans; cout<>TE; while(TE--)sol(); }