#include typedef long long int ll; #define REP(i,n) for(int i=0;i>N>>M; vector A(N); set sum; REP(i,N)cin>>A[i]; A[N]=0; REP(i,N+1){ for(int j=i;j