#include #include #include #include #include #include #include #include #include #include #include #include #include #define sz(m)((m).size()) #define all(a)a.begin(),a.end() #define forn(i,n)for(int i=0,i##e=n;i(cout,"\n"));cout< plates) { int m = 0; fori (j, plates[0]) { int c = 0; fori(i, plates) c += plates[i][j] - '0'; m = max(m, max(2 - c, 0) + max(1 - (int)plates.size() + c, 0)); } return m; } }; double test0() { string t0[] = {"010", "011", "101"}; vector p0(t0, t0+sizeof(t0)/sizeof(string)); TheDevice * obj = new TheDevice(); clock_t start = clock(); int my_answer = obj->minimumAdditional(p0); clock_t end = clock(); delete obj; cout <<"Time: " <<(double)(end-start)/CLOCKS_PER_SEC <<" seconds" < p0(t0, t0+sizeof(t0)/sizeof(string)); TheDevice * obj = new TheDevice(); clock_t start = clock(); int my_answer = obj->minimumAdditional(p0); clock_t end = clock(); delete obj; cout <<"Time: " <<(double)(end-start)/CLOCKS_PER_SEC <<" seconds" < p0(t0, t0+sizeof(t0)/sizeof(string)); TheDevice * obj = new TheDevice(); clock_t start = clock(); int my_answer = obj->minimumAdditional(p0); clock_t end = clock(); delete obj; cout <<"Time: " <<(double)(end-start)/CLOCKS_PER_SEC <<" seconds" < p0(t0, t0+sizeof(t0)/sizeof(string)); TheDevice * obj = new TheDevice(); clock_t start = clock(); int my_answer = obj->minimumAdditional(p0); clock_t end = clock(); delete obj; cout <<"Time: " <<(double)(end-start)/CLOCKS_PER_SEC <<" seconds" < p0(t0, t0+sizeof(t0)/sizeof(string)); TheDevice * obj = new TheDevice(); clock_t start = clock(); int my_answer = obj->minimumAdditional(p0); clock_t end = clock(); delete obj; cout <<"Time: " <<(double)(end-start)/CLOCKS_PER_SEC <<" seconds" <