Пример #1
0
def test_n1():
    assert max_production_dp(1) == 0
    assert max_production_greedy(1) == 0
Пример #2
0
def test_n10():
    assert max_production_dp(10) == 36
    assert max_production_greedy(10) == 36
Пример #3
0
def test_n50():
    assert max_production_dp(50) == 86093442
    assert max_production_greedy(50) == 86093442
Пример #4
0
def test_n8():
    assert max_production_dp(8) == 18
    assert max_production_greedy(8) == 18
Пример #5
0
def test_n9():
    assert max_production_dp(9) == 27
    assert max_production_greedy(9) == 27
Пример #6
0
def test_n6():
    assert max_production_dp(6) == 9
    assert max_production_greedy(6) == 9
Пример #7
0
def test_n7():
    assert max_production_dp(7) == 12
    assert max_production_greedy(7) == 12
Пример #8
0
def test_n0():
    assert max_production_dp(0) == 0
    assert max_production_greedy(0) == 0
Пример #9
0
def test_n5():
    assert max_production_dp(5) == 6
    assert max_production_greedy(5) == 6
Пример #10
0
def test_n4():
    assert max_production_dp(4) == 4
    assert max_production_greedy(4) == 4
Пример #11
0
def test_n3():
    assert max_production_dp(3) == 2
    assert max_production_greedy(3) == 2
Пример #12
0
def test_n2():
    assert max_production_dp(2) == 1
    assert max_production_greedy(2) == 1