int main(){ QuadraticLaw * q = new QuadraticLaw(); cout << q->getTime(1000000000000000000)<<endl; return 0; }
bool do_test(long long d, long long __expected) { time_t startClock = clock(); QuadraticLaw *instance = new QuadraticLaw(); long long __result = instance->getTime(d); 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; } }