Пример #1
0
 def test_prob4_case_3(self):
     result = prob4.solution(3, [1, 4, 19])
     self.assertEqual(result, 4)
Пример #2
0
 def test_prob4_case_2(self):
     result = prob4.solution(4, [1, 3, 7, 10])
     self.assertEqual(result, 6)
Пример #3
0
 def test_prob4_case_2(self):
     result = prob4.solution(5, [1, 1, 2, 3, 4], { '1': ['2', '3', '4', '5'] })
     self.assertEqual(result, '5 5')
Пример #4
0
 def test_prob4_case_3(self):
     result = prob4.solution(6, [1, 1, 1, 1, 1, 1], { '1': ['2', '3', '4'], '3': ['5', '6'] })
     self.assertEqual(result, '6 3')
Пример #5
0
 def test_prob4_case_1(self):
     result = prob4.solution(4, [2, 1, 2, 2], { '1': ['2', '3'], '2': ['4'] })
     self.assertEqual(result, '4 5')