func_code_string: #include<bits/stdc++.h>   using namespace std;   #define pb push_back      int i,j,n,m,e;   vector<int>v,s;      int main()   {   #ifndef ONLINE_JUDGE    freopen( input.txt , r ,stdin);    freopen( output.txt , w ,stdout);   #endif       int t;    cin>>t;    while(t--)    {     int k,sum=0;     cin>>n>>k;     int a[n+5];        for(i=0;i<n;i++)     {      cin>>a[i];     }     sort(a,a+n);          for(i=0;i<n;i++)     {      sum+=a[i];      if(sum==k)v.pb(a[i]);      else s.pb(a[i]);     }     if(v.size()==0)     {      cout<< YES <<endl;            for(auto it : s)cout<<it<<   ;            cout<<endl;     }        else        {         for(auto it:v)s.pb(it);                   sum=0;         string ans= YES ;            for(auto it:s)         {          sum+=it;          if(sum==k)          {           ans= NO ;break;          }         }         if(ans== NO )cout<<ans<<endl;         else         {          cout<<ans<<endl;                for(auto it : s)cout<<it<<   ;cout<<endl;         }        }         v.clear();        s.clear();       }   }   