예제 #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