#include using namespace std; vector merge(vector a,vector b,int MOD){ int A=a.size(),B=b.size(); vector ret(A+B-1); for(int i=0;i C(int step,int MOD){ vector two; while(step>0){ two.push_back(step%2); step=step>>1; } int M=two.size(); vector> temp(M,vector()); temp[0]={1,1}; for(int i=1;i cur; cur={1}; for(int i=0;i>T; string S; vector c; int temp; for(int i=0;i>S; c=C(S.size()-1,9); temp=0; for(int i=0;i