bool do_test(int n, int k, vector<int> grid, string __expected) { time_t startClock = clock(); DistinctGridEasy *instance = new DistinctGridEasy(); string __result = instance->checkGrid(n, k, grid); double elapsed = (double)(clock() - startClock) / CLOCKS_PER_SEC; delete instance; if (__result == __expected) { cout << "PASSED!" << " (" << elapsed << " seconds)" << endl; return true; } else { cout << "FAILED!" << " (" << elapsed << " seconds)" << endl; cout << " Expected: " << to_string(__expected) << endl; cout << " Received: " << to_string(__result) << endl; return false; } }
string solve(int n, int k, vector<int> grid, int) { DistinctGridEasy sol; return sol.checkGrid(n, k, grid); }