コード例 #1
0
 def test_one(self):
     coins = [1]
     expected = 2
     assert min_impossible_coins(coins) == expected
コード例 #2
0
 def test_five(self):
     coins = [1, 1, 1, 1, 5, 10, 15, 20, 100]
     expected = 55
     assert min_impossible_coins(coins) == expected
コード例 #3
0
 def test_three(self):
     coins = [1, 1, 2, 3, 5, 7, 22]
     expected = 20
     assert min_impossible_coins(coins) == expected
コード例 #4
0
 def test_four(self):
     coins = [1, 1, 4, 5, 6, 8, 9]
     expected = 3
     assert min_impossible_coins(coins) == expected
コード例 #5
0
 def test_two(self):
     coins = [1, 1, 1, 1, 1]
     expected = 6
     assert min_impossible_coins(coins) == expected