Simplify test input

This commit is contained in:
2024-12-04 22:08:54 -08:00
parent 80b85b459e
commit 00a3bdd07b
6 changed files with 28 additions and 23 deletions

View File

@@ -1,8 +1,12 @@
import re
from functools import reduce
test_input_p1 = "xmul(2,4)%&mul[3,7]!@^do_not_mul(5,5)+mul(32,64]then(mul(11,8)mul(8,5))"
test_input_p2 = "xmul(2,4)&mul[3,7]!^don't()_mul(5,5)+mul(32,64](mul(11,8)undo()?mul(8,5))"
test_input_p1 = (
"xmul(2,4)%&mul[3,7]!@^do_not_mul(5,5)+mul(32,64]then(mul(11,8)mul(8,5))"
)
test_input_p2 = (
"xmul(2,4)&mul[3,7]!^don't()_mul(5,5)+mul(32,64](mul(11,8)undo()?mul(8,5))"
)
test_solution_p1 = 161
test_solution_p2 = 48