예제 #1
0
 def test_0_3_6(self):
   num = get_nth_number([0, 3, 6], 30000000)
   self.assertEqual(num, 175594)
예제 #2
0
 def test_3_2_1(self):
   num = get_nth_number([3, 2, 1], 30000000)
   self.assertEqual(num, 18)
예제 #3
0
 def test_3_1_2(self):
   num = get_nth_number([3, 1, 2], 30000000)
   self.assertEqual(num, 362)
예제 #4
0
 def test_2_3_1(self):
   num = get_nth_number([2, 3, 1], 30000000)
   self.assertEqual(num, 6895259)
예제 #5
0
 def test_1_2_3(self):
   num = get_nth_number([1, 2, 3], 30000000)
   self.assertEqual(num, 261214)
예제 #6
0
 def test_2_1_3(self):
   num = get_nth_number([2, 1, 3], 30000000)
   self.assertEqual(num, 3544142)
예제 #7
0
 def test_1_3_2(self):
   num = get_nth_number([1, 3, 2], 30000000)
   self.assertEqual(num, 2578)
예제 #8
0
 def test_0_3_6(self):
     num = get_nth_number([0, 3, 6], 10)
     self.assertEqual(num, 0)