Exemplo n.º 1
0
int test56() {
    int N = 21;
    int M = 1;
    int K = 31;
    KingdomAndCities* pObj = new KingdomAndCities();
    clock_t start = clock();
    int result = pObj->howMany(N, M, K);
    clock_t end = clock();
    delete pObj;
    int expected = 536604856;
    if(result == expected) {
        cout << "Test Case 56: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 56: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}