示例#1
0
 def test_04(self):
     input = inputs.read("input13_2_3")
     result = day13.part2(input)
     self.assertEqual(result, 779210)
示例#2
0
 def test_05(self):
     input = inputs.read("input15_4")
     result = day15.part1(input)
     self.assertEqual(result, 78)
示例#3
0
 def test_07(self):
     input = inputs.read("input15_6")
     result = day15.part1(input)
     self.assertEqual(result, 1836)
示例#4
0
 def test_02(self):
     input = inputs.read("input09")
     result = day09.part2(input, 127)
     self.assertEqual(result, 62)
示例#5
0
 def test_02(self):
     input = inputs.read("input08")
     result = day08.part2(input)
     self.assertEqual(result, 8)
示例#6
0
 def test_01(self):
     input = inputs.read("input07")
     result = day07.part2(input)
     self.assertEqual(result, 32)
示例#7
0
 def test_in(self):
     input = inputs.read("input07_actual")
     result = day07.part2(input)
     self.assertEqual(result, 48160)
示例#8
0
 def test_in(self):
     input = inputs.read("input02_actual")
     result = day02.part2(input)
     self.assertEqual(result, 497)
示例#9
0
 def test_in(self):
     input = inputs.read("input05_actual")
     result = day05.part2(input)
     self.assertEqual(result, 651)
示例#10
0
 def test_01(self):
     input = inputs.read("input12")
     result = day12.part2(input)
     self.assertEqual(result, 286)
示例#11
0
 def test_in(self):
     input = inputs.read("input12_actual")
     result = day12.part2(input)
     self.assertEqual(result, 156735)
示例#12
0
 def test_in(self):
     input = inputs.read("input13_actual")
     result = day13.part2(input)
     self.assertEqual(result, 725850285300475)
示例#13
0
 def test_06(self):
     input = inputs.read("input13_2_5")
     result = day13.part2(input)
     self.assertEqual(result, 1202161486)
示例#14
0
 def test_05(self):
     input = inputs.read("input13_2_4")
     result = day13.part2(input)
     self.assertEqual(result, 1261476)
示例#15
0
 def test_01(self):
     input = inputs.read("input18")
     result = day18.part2(input)
     self.assertEqual(result, 693891)
示例#16
0
 def test_01(self):
     input = inputs.read("input03")
     result = day03.part1(input)
     self.assertEqual(result, 7)
示例#17
0
 def test_in(self):
     input = inputs.read("input18_actual")
     result = day18.part2(input)
     self.assertEqual(result, 362464596624526)
示例#18
0
 def test_in(self):
     input = inputs.read("input03_actual")
     result = day03.part1(input)
     self.assertEqual(result, 211)
示例#19
0
 def test_02(self):
     input = inputs.read("input07_2")
     result = day07.part2(input)
     self.assertEqual(result, 126)
示例#20
0
 def test_in(self):
     input = inputs.read("input03_actual")
     result = day03.part2(input)
     self.assertEqual(result, 3584591857)
示例#21
0
 def test_01(self):
     input = inputs.read("input09")
     result = day09.part1(input, 5)
     self.assertEqual(result, 127)
示例#22
0
 def test_01(self):
     input = inputs.read("input01")
     num_input = [int(el) for el in input]
     result = day01.part2(num_input)
     self.assertEqual(result, 241861950)
示例#23
0
 def test_in(self):
     input = inputs.read("input09_actual")
     result = day09.part2(input, 393911906)
     self.assertEqual(result, 59341885)
示例#24
0
 def test_in(self):
     input = inputs.read("input01_actual")
     num_input = [int(el) for el in input]
     result = day01.part2(num_input)
     self.assertEqual(result, 82498112)
示例#25
0
 def test_in(self):
     input = inputs.read("input08_actual")
     result = day08.part2(input)
     self.assertEqual(result, 2092)
示例#26
0
 def test_01(self):
     input = inputs.read("input18")
     result = day18.part1(input)
     self.assertEqual(result, 26335)
示例#27
0
 def test_06(self):
     input = inputs.read("input15_5")
     result = day15.part1(input)
     self.assertEqual(result, 438)
示例#28
0
 def test_in(self):
     input = inputs.read("input18_actual")
     result = day18.part1(input)
     self.assertEqual(result, 69490582260)
示例#29
0
 def test_in(self):
     input = inputs.read("input15_actual")
     result = day15.part2(input)
     self.assertEqual(result, 2159626)
示例#30
0
 def test_03(self):
     input = inputs.read("input13_2_2")
     result = day13.part2(input)
     self.assertEqual(result, 754018)