#include using namespace std; typedef long long int ll; #define debugv(v) printf("L%d %s => ",__LINE__,#v);for(auto e:v){cout< ",__LINE__,#m);for(int x=0;x<(w);x++){cout<<(m)[x]<<" ";}cout< ostream& operator <<(ostream &o,const pair p){o<<"("< dp; int calc(int bit,int disc){ int i,k,key,min=BIGINT; key=bit|(disc<<16); if (dp.count(key)) return dp[key]; for (i=0;i>n; for (i=0;i