Exemple #1
0
def main():
    #startClock = time.time()
    #print(solve(getInput()))
    #stopClock = time.time() - startClock
    #print("Elapsed time: ", stopClock)
    values = input("Enter 'x' 'y' 'z': ")
    print(solve(list(map(int, values.split()))))
Exemple #2
0
def test_random():
    for _i in range(1000):
        x = randrange(1000)
        y = randrange(1000)
        z = randrange(1000)
        zIndex = solve([x, y, z])
        assert verify_solution([x, y, z], zIndex)
Exemple #3
0
def test_stament_two():
    assert solve([2, 1, 3]) == 3
Exemple #4
0
def test_special_case_4():
    assert solve([10, 10, 50]) == -1
Exemple #5
0
def test_stamente_one():
    assert solve([2, 0, 3]) == -1
Exemple #6
0
def test_special_case_2():
    assert solve([433, 423, 340]) == 68
Exemple #7
0
def test_special_case():
    assert solve([322, 747, 3]) == -1
Exemple #8
0
def test_higher_limits_without_occurrence():
    assert solve([1000, 0, 1]) == -1
Exemple #9
0
def test_higher_limits():
    assert solve([1000, 0, 1000]) == 1
Exemple #10
0
def test_lower_limits():
    assert solve([0, 0, 0]) == 0