예제 #1
0
 def test4(self):
     test_input = '4444\n1789,37,47,1889'
     self.assertEqual(solve(test_input), 1202161486)
예제 #2
0
 def test3(self):
     test_input = '4444\n67,7,x,59,61'
     self.assertEqual(solve(test_input), 1261476)
예제 #3
0
 def test1(self):
     test_input = '4444\n67,7,59,61'
     self.assertEqual(solve(test_input), 754018)
예제 #4
0
 def test2(self):
     test_input = '4444\n67,x,7,59,61'
     self.assertEqual(solve(test_input), 779210)
예제 #5
0
 def test(self):
     test_input = aoc.puzzle_input(YEAR, DAY, is_test=True)
     self.assertEqual(solve(test_input), 1068781)