1 #include2 using namespace std; 3 const int MOD=998244353; 4 int m,w,x,t1,t2,f[10001][1<<10],d[10001][10],cnt[1<<10]; 5 int precnt(int x) 6 { 7 int s=0; 8 while(x) s=s xor (x&1),x/=2; 9 return s>0;10 }11 int get(int a,int b)12 {13 int s=0;14 for (int i=0;i 0)*d[b][i]);15 return s;16 }17 int get2(int a,int b)18 {19 int s=0;20 for (int i=0;i '1') ch=getchar();27 return ch-'0';28 }29 int main()30 {31 freopen("adore.in","r",stdin);32 freopen("adore.out","w",stdout);33 scanf("%d%d",&m,&w);34 for (int i=0;i 1&&i