Exemple #1
0
def main():
    result = solve(read_resource(2015, 1))
    print(f'Result: {result}')
def test_solve():
    result = solve(read_resource(2015, 1))
    assert result == 74
def test_solve():
    result = solve(read_resource(2015, 2))
    assert result == 1606483
def test_solve():
    result = solve(read_resource(2015, 4))
    assert result == 346386
def test_example_2():
    result = solve(read_resource(2015, 4, 'example.2.txt'))
    assert result == 1048970
def test_example():
    result = solve(read_resource(2015, 4, 'example.txt'))
    assert result == 609043
def test_solve():
    result = solve(read_resource(2015, 2))
    assert result == 3842356