Exemplo n.º 1
0
 def test_1(self):
     input = '10 players; last marble is worth 1618 points'
     r = solve_9(input)
     self.assertEqual(8317, r)
Exemplo n.º 2
0
 def run_python_dll(self):
     input = read_raw_entries('input.txt')[0].strip()
     solve_9(input, 100)
Exemplo n.º 3
0
 def test_6(self):
     input = '9 players; last marble is worth 25 points'
     r = solve_9(input)
     self.assertEqual(32, r)
Exemplo n.º 4
0
 def test_5(self):
     input = '30 players; last marble is worth 5807 points'
     r = solve_9(input)
     self.assertEqual(37305, r)
Exemplo n.º 5
0
 def test_4(self):
     input = '21 players; last marble is worth 6111 points'
     r = solve_9(input)
     self.assertEqual(54718, r)
Exemplo n.º 6
0
 def test_3(self):
     input = '17 players; last marble is worth 1104 points'
     r = solve_9(input)
     self.assertEqual(2764, r)
Exemplo n.º 7
0
 def test_2(self):
     input = '13 players; last marble is worth 7999 points'
     r = solve_9(input)
     self.assertEqual(146373, r)