示例#1
0
 def test_extra_0(self):
     self.assertEqual(
         5104,
         solution([
             512, 125, 928, 381, 890, 90, 512, 789, 469, 473, 908, 990, 195,
             763, 102, 643, 458, 366, 684, 857, 126, 534, 974, 875, 459,
             892, 686, 373, 127, 297, 576, 991, 774, 856, 372, 664, 946,
             237, 806, 767, 62, 714, 758, 258, 477, 860, 253, 287, 579, 289,
             496
         ]))
示例#2
0
 def test_extra_2(self):
     self.assertEqual(6, solution([2, 5, 5, 5, 5, 5]))
示例#3
0
 def test_extra_1(self):
     self.assertEqual(3, solution([1, 5, 5]))
示例#4
0
 def test_extra_0(self):
     self.assertEqual(5104, solution([512, 125, 928, 381, 890, 90, 512, 789, 469, 473, 908, 990, 195, 763, 102, 643, 458, 366, 684, 857, 126, 534, 974, 875, 459, 892, 686, 373, 127, 297, 576, 991, 774, 856, 372, 664, 946, 237, 806, 767, 62, 714, 758, 258, 477, 860, 253, 287, 579, 289, 496]))
示例#5
0
 def test_provided_1(self):
     self.assertEqual(3, solution([10, 7, 12]))
示例#6
0
 def test_provided_0(self):
     self.assertEqual(2, solution([2, 2, 3, 7]))
示例#7
0
 def test_extra_2(self):
     self.assertEqual(6, solution([2, 5, 5, 5, 5, 5]))
示例#8
0
 def test_extra_1(self):
     self.assertEqual(3, solution([1, 5, 5]))
示例#9
0
 def test_provided_1(self):
     self.assertEqual(3, solution([10, 7, 12]))
示例#10
0
 def test_provided_0(self):
     self.assertEqual(2, solution([2, 2, 3, 7]))