int main() { ColorfulBricks cb; string ss = "AAAAB"; int re = cb.countLayouts(ss); return 0; }
int main() { ColorfulBricks C; string s; int tcases; cin>>tcases; for(int i=0;i<tcases;i++){ cin>>s; cout<<C.countLayouts(s)<<endl; } return 0; }
double test2() { string p0 = "WXYZ"; ColorfulBricks * obj = new ColorfulBricks(); clock_t start = clock(); int my_answer = obj->countLayouts(p0); clock_t end = clock(); delete obj; cout <<"Time: " <<(double)(end-start)/CLOCKS_PER_SEC <<" seconds" <<endl; int p1 = 0; cout <<"Desired answer: " <<endl; cout <<"\t" << p1 <<endl; cout <<"Your answer: " <<endl; cout <<"\t" << my_answer <<endl; if (p1 != my_answer) { cout <<"DOESN'T MATCH!!!!" <<endl <<endl; return -1; } else { cout <<"Match :-)" <<endl <<endl; return (double)(end-start)/CLOCKS_PER_SEC; } }