int run_test_case( int casenum__ ) { long long starttime__ = get_time(); switch( casenum__ ) { case 0: { string board[] = {"WBWBW", "BBBBB", "WBWBW", "WBWBW"}; int expected__ = 3; return verify_case( casenum__, starttime__, expected__, MonochromaticBoard().theMin( vector <string>( board, board + ( sizeof board / sizeof(string) ) ) ) ); } case 1: { string board[] = {"BBBB", "BBBB", "BBBB"}; int expected__ = 3; return verify_case( casenum__, starttime__, expected__, MonochromaticBoard().theMin( vector <string>( board, board + ( sizeof board / sizeof(string) ) ) ) ); } case 2: { string board[] = {"BBBBB", "BBBBB", "BBBBB", "BBBBB", "BBBBB", "BBBBB", "BBBBB", "BBBBB"}; int expected__ = 5; return verify_case( casenum__, starttime__, expected__, MonochromaticBoard().theMin( vector <string>( board, board + ( sizeof board / sizeof(string) ) ) ) ); } case 3: { string board[] = {"WW", "WW"}; int expected__ = 0; return verify_case( casenum__, starttime__, expected__, MonochromaticBoard().theMin( vector <string>( board, board + ( sizeof board / sizeof(string) ) ) ) ); } case 4: { string board[] = {"BBBBBBBB", "BBBBBBBB", "BBBBBBBB", "WBWBBBWB", "BBBBBBBB"}; int expected__ = 9; return verify_case( casenum__, starttime__, expected__, MonochromaticBoard().theMin( vector <string>( board, board + ( sizeof board / sizeof(string) ) ) ) ); } // custom cases /* case 5: { string board[] = ; int expected__ = ; return verify_case( casenum__, starttime__, expected__, MonochromaticBoard().theMin( vector <string>( board, board + ( sizeof board / sizeof(string) ) ) ) ); } */ /* case 6: { string board[] = ; int expected__ = ; return verify_case( casenum__, starttime__, expected__, MonochromaticBoard().theMin( vector <string>( board, board + ( sizeof board / sizeof(string) ) ) ) ); } */ /* case 7: { string board[] = ; int expected__ = ; return verify_case( casenum__, starttime__, expected__, MonochromaticBoard().theMin( vector <string>( board, board + ( sizeof board / sizeof(string) ) ) ) ); } */ default: return -1; } }
int run_test_case(int casenum__) { switch (casenum__) { case 0: { string board[] = {"WBWBW", "BBBBB", "WBWBW", "WBWBW"}; int expected__ = 3; clock_t start__ = clock(); int received__ = MonochromaticBoard().theMin(vector <string>(board, board + (sizeof board / sizeof board[0]))); return verify_case(casenum__, expected__, received__, clock()-start__); } case 1: { string board[] = {"BBBB", "BBBB", "BBBB"}; int expected__ = 3; clock_t start__ = clock(); int received__ = MonochromaticBoard().theMin(vector <string>(board, board + (sizeof board / sizeof board[0]))); return verify_case(casenum__, expected__, received__, clock()-start__); } case 2: { string board[] = {"BBBBB", "BBBBB", "BBBBB", "BBBBB", "BBBBB", "BBBBB", "BBBBB", "BBBBB"}; int expected__ = 5; clock_t start__ = clock(); int received__ = MonochromaticBoard().theMin(vector <string>(board, board + (sizeof board / sizeof board[0]))); return verify_case(casenum__, expected__, received__, clock()-start__); } case 3: { string board[] = {"WW", "WW"}; int expected__ = 0; clock_t start__ = clock(); int received__ = MonochromaticBoard().theMin(vector <string>(board, board + (sizeof board / sizeof board[0]))); return verify_case(casenum__, expected__, received__, clock()-start__); } case 4: { string board[] = {"BBBBBBBB", "BBBBBBBB", "BBBBBBBB", "WBWBBBWB", "BBBBBBBB"}; int expected__ = 9; clock_t start__ = clock(); int received__ = MonochromaticBoard().theMin(vector <string>(board, board + (sizeof board / sizeof board[0]))); return verify_case(casenum__, expected__, received__, clock()-start__); } // custom cases /* case 5: { string board[] = ; int expected__ = ; clock_t start__ = clock(); int received__ = MonochromaticBoard().theMin(vector <string>(board, board + (sizeof board / sizeof board[0]))); return verify_case(casenum__, expected__, received__, clock()-start__); }*/ /* case 6: { string board[] = ; int expected__ = ; clock_t start__ = clock(); int received__ = MonochromaticBoard().theMin(vector <string>(board, board + (sizeof board / sizeof board[0]))); return verify_case(casenum__, expected__, received__, clock()-start__); }*/ /* case 7: { string board[] = ; int expected__ = ; clock_t start__ = clock(); int received__ = MonochromaticBoard().theMin(vector <string>(board, board + (sizeof board / sizeof board[0]))); return verify_case(casenum__, expected__, received__, clock()-start__); }*/ default: return -1; } }