Exemplo n.º 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()))))
Exemplo n.º 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)
Exemplo n.º 3
0
def test_stament_two():
    assert solve([2, 1, 3]) == 3
Exemplo n.º 4
0
def test_special_case_4():
    assert solve([10, 10, 50]) == -1
Exemplo n.º 5
0
def test_stamente_one():
    assert solve([2, 0, 3]) == -1
Exemplo n.º 6
0
def test_special_case_2():
    assert solve([433, 423, 340]) == 68
Exemplo n.º 7
0
def test_special_case():
    assert solve([322, 747, 3]) == -1
Exemplo n.º 8
0
def test_higher_limits_without_occurrence():
    assert solve([1000, 0, 1]) == -1
Exemplo n.º 9
0
def test_higher_limits():
    assert solve([1000, 0, 1000]) == 1
Exemplo n.º 10
0
def test_lower_limits():
    assert solve([0, 0, 0]) == 0