int main() { // 100 // 0 // 0 // 1 // 1 // 1 // 1 // 3 // 58585858 CatchTheBeat a; cout << a.maxCatched(100, 0, 0, 1, 1, 1, 1, 3, 58585858, 1); return 0; }
bool do_test(int n, int x0, int y0, int a, int b, int c, int d, int mod1, int mod2, int offset, int __expected) { time_t startClock = clock(); CatchTheBeat *instance = new CatchTheBeat(); int __result = instance->maxCatched(n, x0, y0, a, b, c, d, mod1, mod2, offset); 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; } }