Update README and meta files
This commit is contained in:
parent
8fe0c9c475
commit
fdab41f806
19 changed files with 4 additions and 7376 deletions
2
.github/README.md
vendored
2
.github/README.md
vendored
|
@ -4,6 +4,8 @@ Solutions to the [2020 Advent of Code](https://adventofcode.com/2020), in both P
|
|||
|
||||
Go solutions are near direct copies of the Python solutions and may be added a few days afterwards.
|
||||
|
||||
Puzzle inputs and descriptions are not included in this repository. You'll have to get these yourself from the AoC website. [Here's why](https://www.reddit.com/r/adventofcode/comments/k99rod/sharing_input_data_were_we_requested_not_to/gf2ukkf/?context=3).
|
||||
|
||||
---
|
||||
|
||||
**Key:** ![Completed][check] is completed, ![Incomplete][cross] is incomplete, ![Partially complete][partial] is partially complete (does not have both languages) and ![Not yet attempted][pending] is released but not yet attempted.
|
||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -252,3 +252,5 @@ dmypy.json
|
|||
.prof
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/go,python,jetbrains+all
|
||||
|
||||
input.txt
|
|
@ -1,52 +1,5 @@
|
|||
# [Day 1: Report Repair](https://adventofcode.com/2020/day/1)
|
||||
|
||||
<details><summary>Challenge description</summary>
|
||||
|
||||
*Description (c) [Eric Wastl](https://twitter.com/ericwastl)*
|
||||
|
||||
## Part One
|
||||
|
||||
After saving Christmas five years in a row, you've decided to take a vacation at a nice resort on a tropical island. Surely, Christmas will go on without you.
|
||||
|
||||
The tropical island has its own currency and is entirely cash-only. The gold coins used there have a little picture of a starfish; the locals just call them stars. None of the currency exchanges seem to have heard of them, but somehow, you'll need to find fifty of these coins by the time you arrive so you can pay the deposit on your room.
|
||||
|
||||
To save your vacation, you need to get all fifty stars by December 25th.
|
||||
|
||||
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
|
||||
|
||||
Before you leave, the Elves in accounting just need you to fix your expense report (your [puzzle input](input.txt)); apparently, something isn't quite adding up.
|
||||
|
||||
Specifically, they need you to find the two entries that sum to `2020` and then multiply those two numbers together.
|
||||
|
||||
For example, suppose your expense report contained the following:
|
||||
|
||||
```
|
||||
1721
|
||||
979
|
||||
366
|
||||
299
|
||||
675
|
||||
1456
|
||||
```
|
||||
|
||||
In this list, the two entries that sum to `2020` are `1721` and `299`. Multiplying them together produces `1721 * 299 = 514579`, so the correct answer is `514579`.
|
||||
|
||||
Of course, your expense report is much larger. Find the two entries that sum to `2020`; what do you get if you multiply them together?
|
||||
|
||||
Your puzzle answer was `1010884`.
|
||||
|
||||
## Part Two
|
||||
|
||||
The Elves in accounting are thankful for your help; one of them even offers you a starfish coin they had left over from a past vacation. They offer you a second one if you can find three numbers in your expense report that meet the same criteria.
|
||||
|
||||
Using the above example again, the three entries that sum to `2020` are `979`, `366`, and `675`. Multiplying them together produces the answer, `241861950`.
|
||||
|
||||
In your expense report, what is the product of the three entries that sum to `2020`?
|
||||
|
||||
Your puzzle answer was `253928438`.
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>Script output</summary>
|
||||
|
||||
```
|
||||
|
|
|
@ -1,200 +0,0 @@
|
|||
1227
|
||||
1065
|
||||
329
|
||||
1063
|
||||
1889
|
||||
1700
|
||||
1805
|
||||
1373
|
||||
389
|
||||
1263
|
||||
1276
|
||||
1136
|
||||
1652
|
||||
1981
|
||||
1406
|
||||
1249
|
||||
1197
|
||||
1379
|
||||
1050
|
||||
1791
|
||||
1703
|
||||
2001
|
||||
1842
|
||||
1707
|
||||
1486
|
||||
1204
|
||||
1821
|
||||
1807
|
||||
1712
|
||||
1871
|
||||
1599
|
||||
1390
|
||||
1219
|
||||
1612
|
||||
1980
|
||||
1857
|
||||
1511
|
||||
1702
|
||||
1455
|
||||
1303
|
||||
1052
|
||||
1754
|
||||
1545
|
||||
1488
|
||||
1848
|
||||
1236
|
||||
1549
|
||||
1887
|
||||
1970
|
||||
1123
|
||||
1686
|
||||
1404
|
||||
1688
|
||||
1106
|
||||
1296
|
||||
401
|
||||
1829
|
||||
1693
|
||||
1389
|
||||
1957
|
||||
914
|
||||
1176
|
||||
1348
|
||||
1275
|
||||
1624
|
||||
1401
|
||||
1045
|
||||
1396
|
||||
1352
|
||||
1569
|
||||
1060
|
||||
1235
|
||||
1679
|
||||
1503
|
||||
1340
|
||||
1872
|
||||
1410
|
||||
1077
|
||||
958
|
||||
1681
|
||||
1189
|
||||
1466
|
||||
1087
|
||||
1852
|
||||
1293
|
||||
1139
|
||||
1300
|
||||
1323
|
||||
661
|
||||
1388
|
||||
1983
|
||||
1325
|
||||
1112
|
||||
1774
|
||||
1858
|
||||
1785
|
||||
1616
|
||||
1255
|
||||
1198
|
||||
1354
|
||||
1124
|
||||
1834
|
||||
1417
|
||||
1918
|
||||
1496
|
||||
33
|
||||
1150
|
||||
1861
|
||||
1172
|
||||
2006
|
||||
1199
|
||||
1558
|
||||
1919
|
||||
1620
|
||||
1613
|
||||
1710
|
||||
1477
|
||||
1592
|
||||
1709
|
||||
1909
|
||||
1670
|
||||
1922
|
||||
1840
|
||||
1768
|
||||
1982
|
||||
1193
|
||||
1736
|
||||
1877
|
||||
1770
|
||||
1191
|
||||
1433
|
||||
1072
|
||||
1148
|
||||
1225
|
||||
1147
|
||||
1171
|
||||
1424
|
||||
1913
|
||||
1228
|
||||
1339
|
||||
1814
|
||||
1504
|
||||
1251
|
||||
1240
|
||||
1272
|
||||
1500
|
||||
1927
|
||||
1428
|
||||
1641
|
||||
1453
|
||||
1729
|
||||
1976
|
||||
1808
|
||||
1180
|
||||
1024
|
||||
1108
|
||||
1085
|
||||
1669
|
||||
1636
|
||||
1005
|
||||
1520
|
||||
1929
|
||||
1626
|
||||
1551
|
||||
1234
|
||||
1988
|
||||
1256
|
||||
1524
|
||||
1571
|
||||
1506
|
||||
1977
|
||||
1749
|
||||
1408
|
||||
1540
|
||||
1934
|
||||
1810
|
||||
1328
|
||||
1910
|
||||
1478
|
||||
1600
|
||||
1699
|
||||
1413
|
||||
1446
|
||||
1798
|
||||
1013
|
||||
1998
|
||||
1661
|
||||
1058
|
||||
1051
|
||||
1220
|
||||
1447
|
||||
1675
|
||||
1912
|
||||
1668
|
||||
1932
|
||||
1962
|
||||
1055
|
||||
1757
|
||||
1116
|
||||
1090
|
|
@ -1,55 +1,5 @@
|
|||
# [Day 2: Password Philosophy](https://adventofcode.com/2020/day/2)
|
||||
|
||||
<details><summary>Challenge description</summary>
|
||||
|
||||
*Description (c) [Eric Wastl](https://twitter.com/ericwastl)*
|
||||
|
||||
## Part One
|
||||
|
||||
Your flight departs in a few days from the coastal airport; the easiest way down to the coast from here is via toboggan.
|
||||
|
||||
The shopkeeper at the North Pole Toboggan Rental Shop is having a bad day. "Something's wrong with our computers; we can't log in!" You ask if you can take a look.
|
||||
|
||||
Their password database seems to be a little corrupted: some of the passwords wouldn't have been allowed by the Official Toboggan Corporate Policy that was in effect when they were chosen.
|
||||
|
||||
To try to debug the problem, they have created a list (your puzzle input) of passwords (according to the corrupted database) and the corporate policy when that password was set.
|
||||
|
||||
For example, suppose you have the following list:
|
||||
|
||||
```
|
||||
1-3 a: abcde
|
||||
1-3 b: cdefg
|
||||
2-9 c: ccccccccc
|
||||
```
|
||||
|
||||
Each line gives the password policy and then the password. The password policy indicates the lowest and highest number of times a given letter must appear for the password to be valid. For example, `1-3 a` means that the password must contain `a` at least `1` time and at most `3` times.
|
||||
|
||||
In the above example, 2 passwords are valid. The middle password, `cdefg`, is not; it contains no instances of `b`, but needs at least `1`. The first and third passwords are valid: they contain one `a` or nine `c`, both within the limits of their respective policies.
|
||||
|
||||
How many passwords are valid according to their policies?
|
||||
|
||||
Your puzzle answer was `500`.
|
||||
|
||||
## Part Two
|
||||
|
||||
While it appears you validated the passwords correctly, they don't seem to be what the Official Toboggan Corporate Authentication System is expecting.
|
||||
|
||||
The shopkeeper suddenly realizes that he just accidentally explained the password policy rules from his old job at the sled rental place down the street! The Official Toboggan Corporate Policy actually works a little differently.
|
||||
|
||||
Each policy actually describes two positions in the password, where 1 means the first character, 2 means the second character, and so on. (Be careful; Toboggan Corporate Policies have no concept of "index zero"!) Exactly one of these positions must contain the given letter. Other occurrences of the letter are irrelevant for the purposes of policy enforcement.
|
||||
|
||||
Given the same example list from above:
|
||||
|
||||
* `1-3 a`: `abcde` is valid: position `1` contains `a` and position `3` does not.
|
||||
* `1-3 b`: `cdefg` is invalid: neither position `1` nor position `3` contains `b`.
|
||||
* `2-9 c`: `ccccccccc` is invalid: both position `2` and position `9` contain `c`.
|
||||
|
||||
How many passwords are valid according to the new interpretation of the policies?
|
||||
|
||||
Your puzzle answer was `313`.
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>Script output</summary>
|
||||
|
||||
```
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,93 +1,5 @@
|
|||
# [Day 3: Toboggan Trajectory](https://adventofcode.com/2020/day/3)
|
||||
|
||||
<details><summary>Challenge description</summary>
|
||||
|
||||
*Description (c) [Eric Wastl](https://twitter.com/ericwastl)*
|
||||
|
||||
## Part One
|
||||
|
||||
With the toboggan login problems resolved, you set off toward the airport. While travel by toboggan might be easy, it's certainly not safe: there's very minimal steering and the area is covered in trees. You'll need to see which angles will take you near the fewest trees.
|
||||
|
||||
Due to the local geology, trees in this area only grow on exact integer coordinates in a grid. You make a map (your puzzle input) of the open squares (`.`) and trees (`#`) you can see. For example:
|
||||
|
||||
```
|
||||
..##.......
|
||||
#...#...#..
|
||||
.#....#..#.
|
||||
..#.#...#.#
|
||||
.#...##..#.
|
||||
..#.##.....
|
||||
.#.#.#....#
|
||||
.#........#
|
||||
#.##...#...
|
||||
#...##....#
|
||||
.#..#...#.#
|
||||
```
|
||||
|
||||
These aren't the only trees, though; due to something you read about once involving arboreal genetics and biome stability, the same pattern repeats to the right many times:
|
||||
|
||||
```
|
||||
..##.........##.........##.........##.........##.........##....... --->
|
||||
#...#...#..#...#...#..#...#...#..#...#...#..#...#...#..#...#...#..
|
||||
.#....#..#..#....#..#..#....#..#..#....#..#..#....#..#..#....#..#.
|
||||
..#.#...#.#..#.#...#.#..#.#...#.#..#.#...#.#..#.#...#.#..#.#...#.#
|
||||
.#...##..#..#...##..#..#...##..#..#...##..#..#...##..#..#...##..#.
|
||||
..#.##.......#.##.......#.##.......#.##.......#.##.......#.##..... --->
|
||||
.#.#.#....#.#.#.#....#.#.#.#....#.#.#.#....#.#.#.#....#.#.#.#....#
|
||||
.#........#.#........#.#........#.#........#.#........#.#........#
|
||||
#.##...#...#.##...#...#.##...#...#.##...#...#.##...#...#.##...#...
|
||||
#...##....##...##....##...##....##...##....##...##....##...##....#
|
||||
.#..#...#.#.#..#...#.#.#..#...#.#.#..#...#.#.#..#...#.#.#..#...#.# --->
|
||||
```
|
||||
|
||||
You start on the open square (`.`) in the top-left corner and need to reach the bottom (below the bottom-most row on your map).
|
||||
|
||||
The toboggan can only follow a few specific slopes (you opted for a cheaper model that prefers rational numbers); start by counting all the trees you would encounter for the slope right 3, down 1:
|
||||
|
||||
From your starting position at the top-left, check the position that is right 3 and down 1. Then, check the position that is right 3 and down 1 from there, and so on until you go past the bottom of the map.
|
||||
|
||||
The locations you'd check in the above example are marked here with `O` where there was an open square and `X` where there was a tree:
|
||||
|
||||
```
|
||||
..##.........##.........##.........##.........##.........##....... --->
|
||||
#..O#...#..#...#...#..#...#...#..#...#...#..#...#...#..#...#...#..
|
||||
.#....X..#..#....#..#..#....#..#..#....#..#..#....#..#..#....#..#.
|
||||
..#.#...#O#..#.#...#.#..#.#...#.#..#.#...#.#..#.#...#.#..#.#...#.#
|
||||
.#...##..#..X...##..#..#...##..#..#...##..#..#...##..#..#...##..#.
|
||||
..#.##.......#.X#.......#.##.......#.##.......#.##.......#.##..... --->
|
||||
.#.#.#....#.#.#.#.O..#.#.#.#....#.#.#.#....#.#.#.#....#.#.#.#....#
|
||||
.#........#.#........X.#........#.#........#.#........#.#........#
|
||||
#.##...#...#.##...#...#.X#...#...#.##...#...#.##...#...#.##...#...
|
||||
#...##....##...##....##...#X....##...##....##...##....##...##....#
|
||||
.#..#...#.#.#..#...#.#.#..#...X.#.#..#...#.#.#..#...#.#.#..#...#.# --->
|
||||
```
|
||||
|
||||
In this example, traversing the map using this slope would cause you to encounter `7` trees.
|
||||
|
||||
Starting at the top-left corner of your map and following a slope of right 3 and down 1, how many trees would you encounter?
|
||||
|
||||
Your puzzle answer was `292`.
|
||||
|
||||
## Part Two
|
||||
|
||||
Time to check the rest of the slopes - you need to minimize the probability of a sudden arboreal stop, after all.
|
||||
|
||||
Determine the number of trees you would encounter if, for each of the following slopes, you start at the top-left corner and traverse the map all the way to the bottom:
|
||||
|
||||
Right 1, down 1.
|
||||
Right 3, down 1. (This is the slope you already checked.)
|
||||
Right 5, down 1.
|
||||
Right 7, down 1.
|
||||
Right 1, down 2.
|
||||
|
||||
In the above example, these slopes would find `2`, `7`, `3`, `4`, and `2` tree(s) respectively; multiplied together, these produce the answer `336`.
|
||||
|
||||
What do you get if you multiply together the number of trees encountered on each of the listed slopes?
|
||||
|
||||
Your puzzle answer was `9354744432`.
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>Script output</summary>
|
||||
|
||||
```
|
||||
|
|
|
@ -1,323 +0,0 @@
|
|||
..#..#......###.#...#......#..#
|
||||
...#.....#...#...#..........#..
|
||||
....#.#...............#.#.#....
|
||||
.........#.......##............
|
||||
#.#....#.#####.##.#........#..#
|
||||
.....#...##.#..#.##...#.#..#...
|
||||
#.#..###.#........#....##...#.#
|
||||
..###.....#..###.....##........
|
||||
#.#.#...........#.....#.#....##
|
||||
...#.#.##.##.#.#......#...##.#.
|
||||
.....##.#..#....#..#...##...###
|
||||
...#.....#..#..#...#.#....##...
|
||||
.#...##.#.........#...#.#......
|
||||
....#...#.....#......#...#.....
|
||||
.#...#.....#....#......#...#...
|
||||
#...#......####..##...###......
|
||||
....#..#......##.##.....#..#...
|
||||
....#....#.......#..#...#....#.
|
||||
...##..#.##..#.#...#..##.......
|
||||
##.#..#.....#.##.#....#..##....
|
||||
#....#....#.....#..#.#.#.....#.
|
||||
##...#.###.....#....#..#.#.#...
|
||||
#..#.......#...#.#...#.#.....#.
|
||||
....#.#.......#.....###..#..#.#
|
||||
......####...#.#..#..#.#.#.#...
|
||||
#...##.....#...#.#.........#.#.
|
||||
......#...##.#..#.#........#...
|
||||
..#.#...........#..##...###.##.
|
||||
#......#.#......#.....#.....#.#
|
||||
.#...............###.#.###.....
|
||||
...#...........##..#...##..##.#
|
||||
#......#.##.#............#.##.#
|
||||
.#.#....#....###........#..#...
|
||||
...##.#.#..#.##.#..##..#.##..##
|
||||
.....#...#.#.#...#....#......#.
|
||||
..............#...##...........
|
||||
..............##........#..###.
|
||||
.#.##.......#.....##.#......#..
|
||||
..#......#..#.#####..#.#.......
|
||||
#.#..#...#.#..#....#..#.##..#..
|
||||
...##.......#.#............#...
|
||||
...#....#..#.##.###.......#.###
|
||||
..###..#....#..#.....##...#..#.
|
||||
..#.###.##......###....#....##.
|
||||
...#...##...###....##.....###.#
|
||||
.....#.....#.#.#.........#..###
|
||||
#.#......#.#..#.####..#........
|
||||
#....#.##.......##.............
|
||||
..##...........#....#.....##..#
|
||||
..#...#...........#....#...#...
|
||||
...#...#...#.....#..#....#....#
|
||||
#......##.........#.#...##...#.
|
||||
.##..#...#.....#....#.##.####.#
|
||||
#..##.##.#......#.............#
|
||||
.#.....#..##.###.#.#.#.........
|
||||
.###....###..#....#..#.#.#..##.
|
||||
....#........#..#....##..#.#.#.
|
||||
.....#..........#..........#...
|
||||
.#.##..#..#...#..#.##.#.##.....
|
||||
.#....#...#......#.#..##.##..#.
|
||||
.###.#...#.#.##....#.....#..##.
|
||||
......##.......#..#.......#.#.#
|
||||
.##.#.#.#......#.......#.......
|
||||
#..#...##......#.......#......#
|
||||
...#..#...##.#...#..##.........
|
||||
.....#..###...##...#..#.#...#.#
|
||||
..#.#.#....##..#.#.#.#...#.....
|
||||
.....#.#.#..#..#.#.#...#.......
|
||||
#.#.#...#.#.....#.#.#.##.###...
|
||||
.....#.#.....####..#...........
|
||||
..#.#.#...........##..#.#....#.
|
||||
.#..#......#..#...........###..
|
||||
..#...###.##......#..###...#..#
|
||||
#.#..#.....#..#.##.#..#.#.....#
|
||||
.....................#.#..#....
|
||||
...##..##...#.#..#..##.#....#..
|
||||
.#..#.#....#...#.#.##..........
|
||||
....##.....#..#..##.........##.
|
||||
..##...##........#.#....#...###
|
||||
.#...#............#.#.#.#......
|
||||
#...#........#..#..#...#.#.....
|
||||
..#..........#.......###.##....
|
||||
#...........###..#....##..#.##.
|
||||
##...#..#.##.....#...........#.
|
||||
.#..##.....#..#.#.....##.#..#.#
|
||||
..#..#.##....#.........#.#.#...
|
||||
#..#...#...#..#...........##...
|
||||
.....#.......#.#......#.#.#...#
|
||||
..#.#..#..#.#.#.......#.#...#..
|
||||
......#.....##.....#.....##.##.
|
||||
#.#..#......#......#.####.##...
|
||||
.####...#####.#....#.#..##.....
|
||||
............#....#....#....##..
|
||||
###.........#............#.#...
|
||||
...#...#....#.##..#...#......##
|
||||
...##.#.#.##.##.#.....#...#.#..
|
||||
...#.....#...#..##......#.#.##.
|
||||
.##.#......##................##
|
||||
......#.....#..##.............#
|
||||
#.#...##..#..#..#.##.....#..#..
|
||||
#......###.....#....##...##...#
|
||||
....#..#.....#.......####...##.
|
||||
#.#...#.#...#..........#..##..#
|
||||
....#..#....#................##
|
||||
.####..#........#..#.#...#.....
|
||||
##.###...#.##........#..##.....
|
||||
..###..##...#...#..#...##.....#
|
||||
......#..##....................
|
||||
.#...#......#.#.##..#........#.
|
||||
..#...#####.....##.....#...#...
|
||||
.#..#....#..#....##.#....#..##.
|
||||
.#.....##..###.#.....#.#.#.##..
|
||||
#..##.....##...#.....#..#.#....
|
||||
#.##......#.#......#..........#
|
||||
#####........#.............#...
|
||||
.#..#..##..#....#.....#..####..
|
||||
...#..##.##...####....#.##...##
|
||||
..........#....#...........##.#
|
||||
#...##...#...##....#.....#.....
|
||||
.......#..#.....#.#.#.#.#.....#
|
||||
...#..##..####..#..##.#.##....#
|
||||
#...#...#...........#.#.....#.#
|
||||
..#.....##...###.........#..##.
|
||||
.......##..#.......#.......##..
|
||||
#.#....#....#.###............#.
|
||||
...#......#.#.............#.#..
|
||||
......#..#....#....#....#..#...
|
||||
.....##..#...........##...#.##.
|
||||
..#....#.##.#......#...........
|
||||
#...#....#.#.#.#.#..#..........
|
||||
.#..#..........#..#.#.....#....
|
||||
.....##......##....#.#.....#.#.
|
||||
.....#..#..........#....#.....#
|
||||
....#..#..#.#...#.#..#..#..##.#
|
||||
.#..##.#..##...###.#..........#
|
||||
..###..#......#...##...#.#.....
|
||||
..#...#...#.....#.......#....#.
|
||||
#...##..#.##.#....##.....#.....
|
||||
..#.#.....#...#...#............
|
||||
.......#.#.#..#.....###.#...##.
|
||||
....##.......#####...##..##..#.
|
||||
#...#.##.....#.#...##.........#
|
||||
..#.##..........#..###.#....#..
|
||||
#......#.##...#...#.....###....
|
||||
................#.##...........
|
||||
##.###.#.#.#.##......##..#....#
|
||||
..#.#........##..#..##.........
|
||||
###....#..#....#..##....#.....#
|
||||
#......#..#...........#.#...##.
|
||||
...###.......#...#......##..#.#
|
||||
.......#...##.#.#...#.##......#
|
||||
......##..#...##.#.#...##....#.
|
||||
..#...#...#...#.#.....#..##..#.
|
||||
..##...#.....#.....#..##.......
|
||||
....#........#.#.##.......#.#..
|
||||
#...#..##..#..##..#...#......#.
|
||||
...#..#.#.#..#..#..####...#....
|
||||
#..#..#......#......#..#.######
|
||||
#..#..#..#........#..#.#....###
|
||||
#..##..#.#.##.....#..#......#.#
|
||||
##.......##.#..#.............#.
|
||||
..........#.#..#..#............
|
||||
....#.#.#.#...#......#......#..
|
||||
###.#.#.........#.......#...##.
|
||||
#.............####..#...#.##...
|
||||
....##.......#................#
|
||||
###...#..#......##....#.####.#.
|
||||
..##.##.#.#.#.#...#.......#...#
|
||||
.....#.##......#.......##..#.#.
|
||||
.#...#.##..#.......#.#....#.#.#
|
||||
##...##..#....#..#...#....#....
|
||||
..........#...##.#..##.......##
|
||||
#.#...#....#......#.#.......###
|
||||
......#...#.##....#....##.#.##.
|
||||
..#..#.......#.......#....##...
|
||||
##..##.......##............#.#.
|
||||
.#.#...#..#.#.###......#.......
|
||||
#...#..##....#...###..#.#.....#
|
||||
.#.....#........#..##.#.#.#....
|
||||
..#.##....#..#...........#...#.
|
||||
.....#.#...#.##..###...#...#...
|
||||
#....####.......#..#.#...#.....
|
||||
....#.....#....##..#.##.....###
|
||||
........#.#.....###....#.#.....
|
||||
...#.....#.##.....#......#.....
|
||||
.....#...####......###..#...##.
|
||||
#.#......#..........#..##.#..#.
|
||||
..##......###...#...#.......#..
|
||||
#...#.#...#.#.........#........
|
||||
....#..#.##.#.##.###..#.....#..
|
||||
.#.#.#......#.#........#.....#.
|
||||
.....#.#..#....#...#.....#.#.##
|
||||
##.............#..#.....#.#....
|
||||
#............#..#....##......##
|
||||
#....#......#......#....##..#..
|
||||
.#....#............#......##..#
|
||||
..#.#.#..#.#....##.#.......#.##
|
||||
#.##.....#...#......#...#......
|
||||
.......#...........#..#.##..#.#
|
||||
##.....##.#.....####..........#
|
||||
...#.......#.#.............#..#
|
||||
...##........##..#..#.#........
|
||||
.#.##...#.....##.#......#....#.
|
||||
.#................#.#...#..#...
|
||||
#....#.#.#......#.#.#.##....#..
|
||||
..#......#............#...#....
|
||||
###..#.##........#....##.#...#.
|
||||
.#..#..#......##...............
|
||||
....##.............#....##...##
|
||||
..#.#..#.#####....##.......###.
|
||||
......#...#..#.#....#.#..#...#.
|
||||
.........#..##.##...#....##..##
|
||||
.............#.##....###.#.....
|
||||
..#................#..#.#..#...
|
||||
...#........#......#..###......
|
||||
.#.#.#....#.........#...###.###
|
||||
.........#..#.#......##.....#..
|
||||
#...##..#.#.###..###...........
|
||||
...#.#.#..#......#..##.#.##....
|
||||
.....##.......#................
|
||||
.##....#.#.#.##.....#.##......#
|
||||
...#........#...##.#.##..##...#
|
||||
..#..........#.#......####..##.
|
||||
............#.#.#.#.....#......
|
||||
..##.####.#..#....#..#..##.....
|
||||
......#........#...#..#.#..###.
|
||||
#.#..............#..#...#..#...
|
||||
....#............#...#..#...##.
|
||||
..##....#...##.##.#..........##
|
||||
..#..#.........#..#.....#.#....
|
||||
#.....#.###...##...##...##.....
|
||||
#.#...#..#####.#...#..#.....#..
|
||||
..#.....###...#.........#.#...#
|
||||
....#.##.........#.#.....#.#.#.
|
||||
..........##...#....#.#.#.....#
|
||||
...#...........#.....###.......
|
||||
#....#..#...#.....#.......#....
|
||||
.#.#.....#..##..##..#........#.
|
||||
.#.#.....#....#...#.#.##.......
|
||||
....###...#...###.##....#......
|
||||
...#.#.##....#...##......#...#.
|
||||
#....#...##.....#.##.#.....#.##
|
||||
.#.#.....##.##.##..###...#.....
|
||||
.#.#......#..#..#........#.#..#
|
||||
........#...##........##...#...
|
||||
.#..#.#.#..#.....#....#...#.#..
|
||||
#......#...#.#...#..#.#..#.....
|
||||
.#......#.....#.........###.#..
|
||||
#..#..........##..###.......#..
|
||||
#..#..#....#......#......#.....
|
||||
......#.....##.........##....#.
|
||||
#..#.#...#...#.##.#..#..##.....
|
||||
....#.#....###..#.....#...##.#.
|
||||
..##.....##.#..#..##..#.#......
|
||||
.........#..#....###...#.#....#
|
||||
.........#...#...#...#......##.
|
||||
.......#..#.....#.#.#...#...#..
|
||||
............#.....###......#..#
|
||||
#....##..###.......#...##....##
|
||||
..#.##..#####..##.#...#......#.
|
||||
#.#..#...###.............#.#...
|
||||
##...#..#..#.#....#.#.......#..
|
||||
.....#....##.....###.##..#.....
|
||||
......##..##..#.#..####.#......
|
||||
..#...#.#....#...#.#.........#.
|
||||
##.....#.#....#..#..##........#
|
||||
...........#..#........##..#...
|
||||
..##.#...#.#.#..##..#..#..#..##
|
||||
..........#.###.....#..#.....#.
|
||||
......#............###..##.##..
|
||||
.#.......#..#...........#.###.#
|
||||
#...#..##............##.......#
|
||||
.###..#...#.#....#....#......#.
|
||||
..##.........##............#.#.
|
||||
.##.......##....#.#.#....#..#.#
|
||||
#.##........#.....#.##...#.#...
|
||||
#......#....#.#......##....#..#
|
||||
#.##..##..#...#.###......#.....
|
||||
..........#.#....###.#.....##..
|
||||
#..##...#.###..#.............#.
|
||||
.#.#......#.##.#...#....#.....#
|
||||
.##...#..##...#...........#.##.
|
||||
.##..#.#.#..#.....#.....###....
|
||||
.#...#.#.#..#..#....##...#..#..
|
||||
#.#.#....#.....#..#..##..#.#...
|
||||
......#..#...####..#.........#.
|
||||
.#.#..#......#...#..####.....#.
|
||||
...#.#...#...#....##..#.#.#.##.
|
||||
...#........##.............#.#.
|
||||
...#...#...#.......#..#.#.#..##
|
||||
.####.#...##......#.##.##.#.#..
|
||||
#..###...........#..#.#...#.#.#
|
||||
###...#.#..#...#.#...#.#..#.#.#
|
||||
#....#.....##...#.#...#..#.#...
|
||||
.#........##.##....##..#..#....
|
||||
.#.#.#..#........#...#..#.#.#.#
|
||||
#.##.....#.#...#....##...#..#.#
|
||||
..#.......##.#.###............#
|
||||
##....###..##.........##..#.#..
|
||||
...##...#...#..###.#.....##..#.
|
||||
###.................#.#..#.....
|
||||
....#......#.....#..###......##
|
||||
.......#...##..#...............
|
||||
.#.....#..#.....#...##...#...##
|
||||
.....##....#.#..#.##.....#...#.
|
||||
#..####.#....#..#.....#....#..#
|
||||
..#..##.#.##......#..#.#....#..
|
||||
..#.#.#.#.....#...#...#..#.....
|
||||
.#........#.#...#.#..#...##....
|
||||
.#...#.#...#..#.#...###...#.#..
|
||||
#.....#...##..#.....#...#.#..#.
|
||||
...#....#................#.#...
|
||||
......##.#.#..........#...#....
|
||||
.##..#.#.#...#..#...####.#.....
|
||||
#......#....#..#.......#.......
|
||||
.#........#.#.#....###.#..##...
|
||||
....##......#.....##...#...#...
|
||||
..#..#.#.#...#..#.####.##......
|
||||
...#........#.#.##.#..#.##.#...
|
||||
.#..##...#...#...##.......##.#.
|
||||
#...#.#......#.................
|
||||
..#..#.....#....##...#..###....
|
||||
.#...#.........#.#.##.#........
|
|
@ -1,140 +1,5 @@
|
|||
# [Day 4: Passport Processing](https://adventofcode.com/2020/day/4)
|
||||
|
||||
<details><summary>Challenge description</summary>
|
||||
|
||||
*Description (c) [Eric Wastl](https://twitter.com/ericwastl)*
|
||||
|
||||
## Part One
|
||||
|
||||
You arrive at the airport only to realize that you grabbed your North Pole Credentials instead of your passport. While these documents are extremely similar, North Pole Credentials aren't issued by a country and therefore aren't actually valid documentation for travel in most of the world.
|
||||
|
||||
It seems like you're not the only one having problems, though; a very long line has formed for the automatic passport scanners, and the delay could upset your travel itinerary.
|
||||
|
||||
Due to some questionable network security, you realize you might be able to solve both of these problems at the same time.
|
||||
|
||||
The automatic passport scanners are slow because they're having trouble detecting which passports have all required fields. The expected fields are as follows:
|
||||
|
||||
* `byr` (Birth Year)
|
||||
* `iyr` (Issue Year)
|
||||
* `eyr` (Expiration Year)
|
||||
* `hgt` (Height)
|
||||
* `hcl` (Hair Color)
|
||||
* `ecl` (Eye Color)
|
||||
* `pid` (Passport ID)
|
||||
* `cid` (Country ID)
|
||||
|
||||
Passport data is validated in batch files (your puzzle input). Each passport is represented as a sequence of `key:value` pairs separated by spaces or newlines. Passports are separated by blank lines.
|
||||
|
||||
Here is an example batch file containing four passports:
|
||||
|
||||
```
|
||||
ecl:gry pid:860033327 eyr:2020 hcl:#fffffd
|
||||
byr:1937 iyr:2017 cid:147 hgt:183cm
|
||||
|
||||
iyr:2013 ecl:amb cid:350 eyr:2023 pid:028048884
|
||||
hcl:#cfa07d byr:1929
|
||||
|
||||
hcl:#ae17e1 iyr:2013
|
||||
eyr:2024
|
||||
ecl:brn pid:760753108 byr:1931
|
||||
hgt:179cm
|
||||
|
||||
hcl:#cfa07d eyr:2025 pid:166559648
|
||||
iyr:2011 ecl:brn hgt:59in
|
||||
```
|
||||
|
||||
The first passport is valid - all eight fields are present. The second passport is invalid - it is missing `hgt` (the Height field).
|
||||
|
||||
The third passport is interesting; the only missing field is `cid`, so it looks like data from North Pole Credentials, not a passport at all! Surely, nobody would mind if you made the system temporarily ignore missing `cid` fields. Treat this "passport" as valid.
|
||||
|
||||
The fourth passport is missing two fields, `cid` and `byr`. Missing cid is fine, but missing any other field is not, so this passport is invalid.
|
||||
|
||||
According to the above rules, your improved system would report `2` valid passports.
|
||||
|
||||
Count the number of valid passports - those that have all required fields. Treat `cid` as optional. In your batch file, how many passports are valid?
|
||||
|
||||
Your puzzle answer was `213`.
|
||||
|
||||
## Part Two
|
||||
|
||||
The line is moving more quickly now, but you overhear airport security talking about how passports with invalid data are getting through. Better add some data validation, quick!
|
||||
|
||||
You can continue to ignore the `cid` field, but each other field has strict rules about what values are valid for automatic validation:
|
||||
|
||||
* `byr` (Birth Year) - four digits; at least `1920` and at most `2002`.
|
||||
* `iyr` (Issue Year) - four digits; at least `2010` and at most `2020`.
|
||||
* `eyr` (Expiration Year) - four digits; at least `2020` and at most `2030`.
|
||||
* `hgt` (Height) - a number followed by either `cm` or `in`:
|
||||
* If `cm`, the number must be at least `150` and at most `193`.
|
||||
* If `in`, the number must be at least `59` and at most `76`.
|
||||
* `hcl` (Hair Color) - a # followed by exactly six characters `0-9` or `a-f`.
|
||||
* `ecl` (Eye Color) - exactly one of: `amb` `blu` `brn` `gry` `grn` `hzl` `oth`.
|
||||
* `pid` (Passport ID) - a nine-digit number, including leading zeroes.
|
||||
* `cid` (Country ID) - ignored, missing or not.
|
||||
|
||||
Your job is to count the passports where all required fields are both present and valid according to the above rules. Here are some example values:
|
||||
|
||||
```
|
||||
byr valid: 2002
|
||||
byr invalid: 2003
|
||||
|
||||
hgt valid: 60in
|
||||
hgt valid: 190cm
|
||||
hgt invalid: 190in
|
||||
hgt invalid: 190
|
||||
|
||||
hcl valid: #123abc
|
||||
hcl invalid: #123abz
|
||||
hcl invalid: 123abc
|
||||
|
||||
ecl valid: brn
|
||||
ecl invalid: wat
|
||||
|
||||
pid valid: 000000001
|
||||
pid invalid: 0123456789
|
||||
```
|
||||
|
||||
Here are some invalid passports:
|
||||
|
||||
```
|
||||
eyr:1972 cid:100
|
||||
hcl:#18171d ecl:amb hgt:170 pid:186cm iyr:2018 byr:1926
|
||||
|
||||
iyr:2019
|
||||
hcl:#602927 eyr:1967 hgt:170cm
|
||||
ecl:grn pid:012533040 byr:1946
|
||||
|
||||
hcl:dab227 iyr:2012
|
||||
ecl:brn hgt:182cm pid:021572410 eyr:2020 byr:1992 cid:277
|
||||
|
||||
hgt:59cm ecl:zzz
|
||||
eyr:2038 hcl:74454a iyr:2023
|
||||
pid:3556412378 byr:2007
|
||||
```
|
||||
|
||||
Here are some valid passports:
|
||||
|
||||
```
|
||||
pid:087499704 hgt:74in ecl:grn iyr:2012 eyr:2030 byr:1980
|
||||
hcl:#623a2f
|
||||
|
||||
eyr:2029 ecl:blu cid:129 byr:1989
|
||||
iyr:2014 pid:896056539 hcl:#a97842 hgt:165cm
|
||||
|
||||
hcl:#888785
|
||||
hgt:164cm byr:2001 iyr:2015 cid:88
|
||||
pid:545766238 ecl:hzl
|
||||
eyr:2022
|
||||
|
||||
iyr:2010 hgt:158cm hcl:#b6652a ecl:blu byr:1944 eyr:2021 pid:093154719
|
||||
```
|
||||
|
||||
Count the number of valid passports - those that have all required fields and valid values. Continue to treat `cid `as optional. In your batch file, how many passports are valid?
|
||||
|
||||
Your puzzle answer was `147`.
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>Script output</summary>
|
||||
|
||||
```
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,67 +1,5 @@
|
|||
# [Day 5: Binary Boarding](https://adventofcode.com/2020/day/5)
|
||||
|
||||
<details><summary>Challenge description</summary>
|
||||
|
||||
*Description (c) [Eric Wastl](https://twitter.com/ericwastl)*
|
||||
|
||||
## Part One
|
||||
|
||||
You board your plane only to discover a new problem: you dropped your boarding pass! You aren't sure which seat is yours, and all of the flight attendants are busy with the flood of people that suddenly made it through passport control.
|
||||
|
||||
You write a quick program to use your phone's camera to scan all of the nearby boarding passes (your puzzle input); perhaps you can find your seat through process of elimination.
|
||||
|
||||
Instead of zones or groups, this airline uses binary space partitioning to seat people. A seat might be specified like `FBFBBFFRLR`, where `F` means "front", `B` means "back", `L` means "left", and `R` means "right".
|
||||
|
||||
The first `7` characters will either be `F` or `B`; these specify exactly one of the 128 rows on the plane (numbered `0` through `127`). Each letter tells you which half of a region the given seat is in. Start with the whole list of rows; the first letter indicates whether the seat is in the front (`0` through `63`) or the back (`64` through `127`). The next letter indicates which half of that region the seat is in, and so on until you're left with exactly one row.
|
||||
|
||||
For example, consider just the first seven characters of `FBFBBFFRLR`:
|
||||
|
||||
* Start by considering the whole range, rows `0` through `127`.
|
||||
* F means to take the lower half, keeping rows `0` through `63`.
|
||||
* B means to take the upper half, keeping rows `32` through `63`.
|
||||
* F means to take the lower half, keeping rows `32` through `47`.
|
||||
* B means to take the upper half, keeping rows `40` through `47`.
|
||||
* B keeps rows `44` through `47`.
|
||||
* F keeps rows `44` through `45`.
|
||||
* The final F keeps the lower of the two, row `44`.
|
||||
|
||||
The last three characters will be either `L` or `R`; these specify exactly one of the 8 columns of seats on the plane (numbered `0` through `7`). The same process as above proceeds again, this time with only three steps. `L` means to keep the lower half, while `R` means to keep the upper half.
|
||||
|
||||
For example, consider just the last 3 characters of `FBFBBFFRLR`:
|
||||
|
||||
* Start by considering the whole range, columns `0` through `7`.
|
||||
* R means to take the upper half, keeping columns `4` through `7`.
|
||||
* L means to take the lower half, keeping columns `4` through `5`.
|
||||
* The final R keeps the upper of the two, column `5`.
|
||||
|
||||
So, decoding `FBFBBFFRLR` reveals that it is the seat at row `44`, column `5`.
|
||||
|
||||
Every seat also has a unique seat ID: multiply the row by `8`, then add the column. In this example, the seat has ID `44 * 8 + 5 = 357`.
|
||||
|
||||
Here are some other boarding passes:
|
||||
|
||||
* BFFFBBFRRR: row `70`, column `7`, seat ID `567`.
|
||||
* FFFBBBFRRR: row `14`, column `7`, seat ID `119`.
|
||||
* BBFFBBFRLL: row `102`, column `4`, seat ID `820`.
|
||||
|
||||
As a sanity check, look through your list of boarding passes. What is the highest seat ID on a boarding pass?
|
||||
|
||||
Your puzzle answer was `989`.
|
||||
|
||||
## Part Two
|
||||
|
||||
Ding! The "fasten seat belt" signs have turned on. Time to find your seat.
|
||||
|
||||
It's a completely full flight, so your seat should be the only missing boarding pass in your list. However, there's a catch: some of the seats at the very front and back of the plane don't exist on this aircraft, so they'll be missing from your list as well.
|
||||
|
||||
Your seat wasn't at the very front or back, though; the seats with IDs +1 and -1 from yours will be in your list.
|
||||
|
||||
What is the ID of your seat?
|
||||
|
||||
Your puzzle answer was `548`.
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>Script output</summary>
|
||||
|
||||
```
|
||||
|
|
|
@ -1,900 +0,0 @@
|
|||
BFFFFBBRRL
|
||||
FBBBBBBRRL
|
||||
BBBFFBBRRR
|
||||
BFFFFFFLRL
|
||||
FBFFBFBRRR
|
||||
BFFBFFBLRR
|
||||
FFBBBFBRRR
|
||||
BBFBBBBLRL
|
||||
FBFFBFFLRL
|
||||
BFFFBBFLLL
|
||||
FBFFFFFRLL
|
||||
FBFFBFFRRL
|
||||
BBBFBFBRRL
|
||||
BFFBFFFLLL
|
||||
FBFFFFFLLL
|
||||
BFFFBBFLLR
|
||||
FBBFFBFRRR
|
||||
FFBBFBFLRR
|
||||
FFFBBBFLRL
|
||||
FFBFBBBRRL
|
||||
FBFBBBBLLR
|
||||
BBBFFFBLLR
|
||||
FBBBFFFLLL
|
||||
FFBFBFFRLR
|
||||
FBFBBBFLLR
|
||||
BBBFBBBRRR
|
||||
FBBFFFBLRR
|
||||
FBBFFFBLLR
|
||||
BFBFFBBLLL
|
||||
BBFFFFFRLR
|
||||
BBFBBFFRRL
|
||||
BBBBFBFRRR
|
||||
BFFFFBFRRR
|
||||
FBFFFFBLLR
|
||||
FFBFBFBRLL
|
||||
FBFFFFBLRL
|
||||
BFFFFFFLLL
|
||||
BFBBFBBLRR
|
||||
FFFBBBBRRL
|
||||
BBFFFFBLRL
|
||||
FFFBBFBRLL
|
||||
BBBBFFBRRR
|
||||
FBBBBBFRLL
|
||||
BFFBFBFRLL
|
||||
FBFFBFFLLL
|
||||
FBBBBBBRLL
|
||||
FFFBBBFRRL
|
||||
BBFFFFBRRR
|
||||
FFBFBFFLLR
|
||||
FBBFFFFRRR
|
||||
BFFFFFBRRL
|
||||
BBFFFBBRLR
|
||||
BBBBFFFRLL
|
||||
BFFFFBFRLR
|
||||
BFBBBBFLRL
|
||||
FFBFBFFRRR
|
||||
BFBBFFBLRR
|
||||
FFBBBBBRRR
|
||||
FBBFBFFLRL
|
||||
FFBBFBBLLR
|
||||
BBFFBFBRRL
|
||||
BFBFFBFLLL
|
||||
BFFBBFBRRR
|
||||
FBFBBBFLRR
|
||||
FBBBBBBRLR
|
||||
BFBBBFBRRL
|
||||
FBFBFBBRLR
|
||||
FBBBBFFLRR
|
||||
BBFBBFBLLL
|
||||
BFBBBBFLRR
|
||||
FFBBBBBRLL
|
||||
FFBFFBFRRR
|
||||
BBFFBFBRRR
|
||||
FBFBFFBRRL
|
||||
FFBFFFFRLL
|
||||
BFBFBFFLRL
|
||||
FBFBFFBRLR
|
||||
BFFFBFFLLL
|
||||
BFBBFBFLRR
|
||||
BFBBBBFRLR
|
||||
FBFFFBFRRR
|
||||
BFBFFBFLRR
|
||||
BFFFFBBRLR
|
||||
BBFFFBBRLL
|
||||
FBBBFFFRRR
|
||||
BFBFFFFLLR
|
||||
FFFBBBBLLL
|
||||
FBBFBFBLLR
|
||||
FFBBFBFRLL
|
||||
FBBBFBFLLL
|
||||
BFFBFBBRRL
|
||||
BFFFFFFRLR
|
||||
BFFBBBFLRR
|
||||
BFBFBBBLRL
|
||||
BFBBFFFRLL
|
||||
BBFFBFFLLL
|
||||
BBFFBBBLRL
|
||||
FBBBFFFRLL
|
||||
FBFFFFBRRR
|
||||
FFBBBBBLRL
|
||||
FBBFFFBLLL
|
||||
FBFFFFBLRR
|
||||
BBFFBBFRRL
|
||||
BFBFBFFRLL
|
||||
FFBBFBBRLR
|
||||
FFBBFFBLLR
|
||||
FBBFBFFRLR
|
||||
BBFFBFBLRL
|
||||
BBFBFFFRLL
|
||||
FBBFBBBLRR
|
||||
FFBFFFBRRL
|
||||
BBFFBBFLRR
|
||||
BFFBFFBRRL
|
||||
BFBFBFBRLR
|
||||
BBBFFFBRLR
|
||||
BBBFFFFLLR
|
||||
FBFBBBFRLL
|
||||
FBBFBFBRLL
|
||||
FFBBFBFLLL
|
||||
BFBBBFBLLR
|
||||
BFBBBFBRLL
|
||||
BBFBBFBLRR
|
||||
BFBBBFFLRL
|
||||
BFBBBBFLLR
|
||||
BBBFFBFLRL
|
||||
BFBFBBBLLR
|
||||
BFFFBBFRRL
|
||||
FBBBFBBLLL
|
||||
BBFFFFBLLR
|
||||
FBBBBBFLRR
|
||||
BBFFBBFRLR
|
||||
BFBFFBBRLL
|
||||
BFFBBFFLRL
|
||||
BFFBBFBRRL
|
||||
BBBFFBFRRR
|
||||
BBBFBBBLRL
|
||||
BBFFBFBLLR
|
||||
FFBFBFBLRR
|
||||
FBBBFBBLRL
|
||||
BFBBBFFRRL
|
||||
FBFFBFBLLR
|
||||
BFBFBBBRLL
|
||||
FFFBBBFRLR
|
||||
BBFBBBBLLR
|
||||
FBBFBBBLLL
|
||||
FFBBFBFLRL
|
||||
BFFFBFFLLR
|
||||
BFBFFFBRRL
|
||||
BFFBFFFLRR
|
||||
BFFFFFBLLR
|
||||
FBBBBFFLLR
|
||||
FFBFFBFRRL
|
||||
BBBBFBFLLL
|
||||
BBBFFFBLRL
|
||||
FBFFFBBLLR
|
||||
FFFBBFBRRL
|
||||
BBFBFFBRRL
|
||||
FFBBFBBRRR
|
||||
BBBFFBBLRL
|
||||
BBFFFBFRRR
|
||||
FBBBBBFRRR
|
||||
FFFBFBBRLR
|
||||
FBBBFBFRLR
|
||||
FBFBFBBRLL
|
||||
BFBBBBFRRR
|
||||
FFBBBBBLRR
|
||||
BFBFBBBRRL
|
||||
FBBFFBFLRL
|
||||
FBFFBFBRLR
|
||||
FBBBFBBRRR
|
||||
FBFBFBBRRL
|
||||
FBBBBBFRRL
|
||||
FFBBFBFLLR
|
||||
FBFFBBFRRR
|
||||
BFBBBBBRRL
|
||||
FFBFBFFLRR
|
||||
BFFFFBBLRL
|
||||
FFBBFFBRRR
|
||||
BFFBBFFRLR
|
||||
BFFFBBBRLR
|
||||
BBFBFFFRRL
|
||||
BBFBFBFRLR
|
||||
BBFBBBFRRR
|
||||
BFBFBFFLRR
|
||||
FFBFBFBLLL
|
||||
BFFFFFFRLL
|
||||
FFBBFFFLLR
|
||||
FBBBFFBRLL
|
||||
BFBFFBFLLR
|
||||
BFBBFBFLLL
|
||||
FBFFFBFLLL
|
||||
FBBFFBBLRL
|
||||
BBFFFFBRRL
|
||||
BBBFFBFRRL
|
||||
FBFBFFBRRR
|
||||
FBFBBFBRRR
|
||||
BBFFBFBLLL
|
||||
FFBBBFBRRL
|
||||
BFFFBBBLLR
|
||||
FBBBBBFLLL
|
||||
BFFBFFFLRL
|
||||
FBBFBBBRRR
|
||||
BFFFFBFLLR
|
||||
FBBBBBFLLR
|
||||
FBBBFBFLLR
|
||||
FFBBBFBRLR
|
||||
BFBBBBBRLL
|
||||
FFBFBBBRRR
|
||||
BBBFBFFLRR
|
||||
FFBFBFFRRL
|
||||
BBFFBBBRLR
|
||||
FBBBFBFLRR
|
||||
FFBFFFFLLR
|
||||
FBFFFBFLRR
|
||||
BBBFBBFRRL
|
||||
BBBFBFBLRR
|
||||
BBFFFBBLLR
|
||||
BBFFFFBRLR
|
||||
FBBFFBBRLR
|
||||
FFBFFFBLLR
|
||||
BBFBFBFRRR
|
||||
BBBFFFFRLL
|
||||
BFBBFFFRRL
|
||||
BFBBFBBLRL
|
||||
BFFBBBFRLL
|
||||
BBBFFBBRLL
|
||||
FFBBFFFLRR
|
||||
BFFFFFBRRR
|
||||
FBFBBBFLRL
|
||||
BBFFBBBRLL
|
||||
BBFBFBBLLL
|
||||
BFFBBBFLLR
|
||||
BFFFBFBLRR
|
||||
BBBBFBFRLL
|
||||
BFBBBFBLLL
|
||||
FBFBFBBLRR
|
||||
BBFFBFFRLL
|
||||
BFFFBBBLLL
|
||||
BBBBFFFRRL
|
||||
BFFBBBBLRR
|
||||
BBFBBFBRRR
|
||||
BBFBFFBLLR
|
||||
BFFBBBFRRL
|
||||
FBBFBFBRRR
|
||||
BFFBFBFRRR
|
||||
BBFFFBBRRL
|
||||
FBFBFFFLLL
|
||||
FBFBBFBLRR
|
||||
FFBBFBBRLL
|
||||
BBFFFFBLLL
|
||||
BFFFFBFRLL
|
||||
FBFFBBFLLR
|
||||
BBBFFFBLLL
|
||||
BBBFFBBLLR
|
||||
FFBBBBFLRL
|
||||
FBBFBFFRLL
|
||||
BBFBFFBLRR
|
||||
BBFFBFFRRR
|
||||
FBFFBBBLLR
|
||||
BFFBFBFLLL
|
||||
BBFBBBFRLR
|
||||
FFBBBBFLRR
|
||||
FBFBBFBLRL
|
||||
FFBBBFBLRR
|
||||
FFFBFBBRRL
|
||||
BBFFFBBLRR
|
||||
BBFFBBBLLR
|
||||
FBFBFFFRRL
|
||||
FBBBBBBLRR
|
||||
FFBBBBBRLR
|
||||
FFBBFFBLLL
|
||||
BFBBBBBRLR
|
||||
BBFFFBBLLL
|
||||
FBBBBFBRRR
|
||||
BBFBFFFLLL
|
||||
BBFBBFFRLL
|
||||
BFFFFFBLRR
|
||||
FBFBBFBLLR
|
||||
FBFBBBFRRR
|
||||
FFBFFBFLLL
|
||||
BFFBFFBRLR
|
||||
BFFBBBFRLR
|
||||
FBFBBBBLLL
|
||||
BBBFFFBRLL
|
||||
FBBFFFFRLL
|
||||
BFBFFBBLRR
|
||||
FFFBBBFLLR
|
||||
FFBBBFFLLL
|
||||
BFBBFFBRRR
|
||||
BBBFFBFLLL
|
||||
FFFBBBFLLL
|
||||
FBBFFFBRRL
|
||||
FFFBBFBRLR
|
||||
FBBBFBFRRL
|
||||
FFBBBFBRLL
|
||||
FBFFFFFRRR
|
||||
BBFBFBBLLR
|
||||
FBFFBBBRLL
|
||||
BBFBBBBRRL
|
||||
BFBFFBFRRL
|
||||
FFFBBBBLRR
|
||||
BFFFBFFLRL
|
||||
FBFBFBBLLL
|
||||
FFBFBFBLLR
|
||||
FFBBBBFRRL
|
||||
BBFFBFFRRL
|
||||
FBFFBBFLRL
|
||||
BFFBBFBLLR
|
||||
BBBBFBBLLR
|
||||
FBFBBBBRLL
|
||||
FFFBBBBLRL
|
||||
FBFFFFBLLL
|
||||
BFFFFBFLRR
|
||||
BBFBFFBLLL
|
||||
FFBFBFBRLR
|
||||
FBBBFFFLRR
|
||||
FBFBFFFLRL
|
||||
BBFBFBFLRL
|
||||
FBBFFBFRLR
|
||||
FBFFBBBLLL
|
||||
BBFFFFFLLL
|
||||
FBBBFFBRRR
|
||||
FFBBBBFLLL
|
||||
FBBFBFFLLR
|
||||
BFBBFFFLLL
|
||||
BFFBBBBRRL
|
||||
BBFBBBFRRL
|
||||
BBBFFBBRLR
|
||||
BFBBFBBLLL
|
||||
FBFBBFFRRL
|
||||
FBBFFBBRLL
|
||||
FBBFFBBLLL
|
||||
BFBBFBFRRR
|
||||
FBFFFFBRRL
|
||||
FFBBBBBLLR
|
||||
FBFFFFFRRL
|
||||
BBBFBBFLRL
|
||||
FBFBFBBLRL
|
||||
BFFBFBBRLR
|
||||
BFFBBFBRLL
|
||||
BBBFBFFRRL
|
||||
FBFFBFFRLR
|
||||
BFFFBFBRLR
|
||||
BBFFFBFRLL
|
||||
BFBFFBBRLR
|
||||
BFFFBFBLLL
|
||||
FBFFBFFLLR
|
||||
BFFFFBFLRL
|
||||
FFBFBBFLRL
|
||||
FBFFFFFLLR
|
||||
BFFBBBFRRR
|
||||
BBFFFFFRRL
|
||||
FBFFFBBLRL
|
||||
FFFBBBFRRR
|
||||
FBFFBBFRLL
|
||||
BBBBFFBRRL
|
||||
FBBBBFBLLL
|
||||
BBBBFBBLRL
|
||||
BFFFBFBRRR
|
||||
BFBBBBFRRL
|
||||
FBBBBFBRLL
|
||||
FFFBBFBRRR
|
||||
BFBBBBBLRR
|
||||
BFBFBFFRRL
|
||||
BFBBFFBRLL
|
||||
BBFFFBBRRR
|
||||
FFBBBFFLRL
|
||||
BFBBFFFRRR
|
||||
FBFBFBFLLR
|
||||
BFBFFFBLRR
|
||||
BBBFFBFRLR
|
||||
BFBBFFFRLR
|
||||
FFBFBFBRRR
|
||||
BBBBFBFRRL
|
||||
BBFFBFBRLR
|
||||
FBBFFFFLLR
|
||||
BBFBBBBRLR
|
||||
FFBBBBBRRL
|
||||
BFFBFFBLLL
|
||||
BBBFBBBRLL
|
||||
FBBBBFFRLL
|
||||
BFFBFBBLLR
|
||||
BFFFBFBRLL
|
||||
BFFFFBBLLR
|
||||
BBBFBFFLLL
|
||||
BBFFFFFRLL
|
||||
BFBFBFBLLR
|
||||
FBFBFBFLRL
|
||||
BFBBFFBLRL
|
||||
BBFBFBBRRL
|
||||
FFFBFBBRLL
|
||||
BFFFFBFRRL
|
||||
BBBBFFFRLR
|
||||
FBBBFFBRLR
|
||||
FBFFBFBLRR
|
||||
BFBFBFFRRR
|
||||
FBFFFFBRLR
|
||||
FBFBBBBRLR
|
||||
FBBBFBBLRR
|
||||
BBBBFFFLRR
|
||||
BFBBFBFRLR
|
||||
BFBFBBBLRR
|
||||
BFBBFBBRRR
|
||||
FBBFFBFRLL
|
||||
BBBFBBFLLR
|
||||
FBBFBBFLRR
|
||||
FBBFFBBRRL
|
||||
BBFBFBBRLR
|
||||
FBFBBBBRRR
|
||||
FFBBFFFRLL
|
||||
BFBBBFFLLL
|
||||
BFBFBFBRLL
|
||||
BFFBFFBRRR
|
||||
FBBBFFFLRL
|
||||
FFFBBFFRRL
|
||||
BBBFBFBLRL
|
||||
BBBFBBBRLR
|
||||
BBFFFFFRRR
|
||||
BBFBBBFLRL
|
||||
FFBBFFFLRL
|
||||
BFFBBBBLLL
|
||||
FBBBBBBLRL
|
||||
BBBFBFFRLR
|
||||
FBFFBFBLRL
|
||||
BFBFFFFLRL
|
||||
FFBFFFFLRR
|
||||
BBBFFBBRRL
|
||||
FFBBFBFRRR
|
||||
FBBBFBFRLL
|
||||
FFFBBFFLLR
|
||||
BBFBBBFLRR
|
||||
BBFFBFFRLR
|
||||
BBBFFFBRRL
|
||||
BFFFBBBRRL
|
||||
BBFFBBBRRL
|
||||
BBBFFFFRRR
|
||||
BBBBFBBRLR
|
||||
FFBBBBFRRR
|
||||
BBBBFBFLRR
|
||||
FFBFBBBRLL
|
||||
BBBFBFFRLL
|
||||
FBBBFBFLRL
|
||||
BFFFBBBLRL
|
||||
FBFFFBBRLR
|
||||
BBFBBFBLLR
|
||||
FBBBBFBLRR
|
||||
BFBBFBFLLR
|
||||
FFBFFBBLRL
|
||||
FBFBFBFRRR
|
||||
BBFBBFBLRL
|
||||
BBFBBBFRLL
|
||||
BFBFFFBRLL
|
||||
BBBBFBFLRL
|
||||
FBFBBFBRLR
|
||||
BBFBFFBRLR
|
||||
FBBFBFFLRR
|
||||
BFFBFBBLRR
|
||||
FBBBBFFRLR
|
||||
FFBFFBBRRL
|
||||
BBBBFFFRRR
|
||||
BFFFFBBRRR
|
||||
FBBFBFFLLL
|
||||
FBFBBFFRLL
|
||||
BFFFBFFRLR
|
||||
BBBFFBBLRR
|
||||
BBFFFBFRRL
|
||||
FFFBBFFLRR
|
||||
FBFBFFBLLR
|
||||
FBBFFFBRRR
|
||||
BFBFBBFLRR
|
||||
BBBFFFFLRL
|
||||
BBBFFBFLRR
|
||||
BBFFBBFLRL
|
||||
BBBFBBFLRR
|
||||
BBBFBBFRLR
|
||||
BBBFBFBRLR
|
||||
FFFBBFFRLL
|
||||
FFBBFBBLLL
|
||||
BFBFFBFLRL
|
||||
FBBFBBFLLR
|
||||
BBFBFBBRLL
|
||||
FBBBBFBLRL
|
||||
BFFBBBBLRL
|
||||
FBBFBFBRRL
|
||||
FBFBFBFRRL
|
||||
FFBFFBFLRR
|
||||
FBFBFFFRLL
|
||||
BFFFBFBLLR
|
||||
BBFBFBBLRL
|
||||
FFBFFBBRRR
|
||||
BBFBBBFLLL
|
||||
BFFBBBBRLL
|
||||
BFBBBBFRLL
|
||||
BFBBBFBLRR
|
||||
BBBBFBFLLR
|
||||
BFBFFFBLLL
|
||||
FBBBBFFRRL
|
||||
FFBBBFFRRL
|
||||
FBFFBFFRLL
|
||||
FFBBFBFRRL
|
||||
FFBFBBFLRR
|
||||
BBFBFBBRRR
|
||||
BBBFFBFRLL
|
||||
BBBFBFBRRR
|
||||
FBFFBBFRRL
|
||||
FBBBFFBLLR
|
||||
BBFFBFFLRR
|
||||
BFBFBFBLLL
|
||||
BBBBFFFLRL
|
||||
FFFBFBBLRL
|
||||
FBBBBBBLLL
|
||||
BFBFBFBLRL
|
||||
BFFBFBBLRL
|
||||
FBFBFBFRLR
|
||||
FBFBBFFLRL
|
||||
BBFFFBFLRL
|
||||
FFBBBFBLLL
|
||||
FBBFFBBLRR
|
||||
FFBFFFFRRR
|
||||
BFBFFBBLLR
|
||||
FBFFBBBRRR
|
||||
FFFBBBFLRR
|
||||
BFBFFBFRLR
|
||||
BFBBFFBLLR
|
||||
FBFFFFBRLL
|
||||
BFBBBBFLLL
|
||||
FFBFBBFRLR
|
||||
BFFBBFBLRL
|
||||
BFBBFBBRLR
|
||||
BBBFBFBRLL
|
||||
BBBFFFFRLR
|
||||
FFBFFFFRRL
|
||||
FFFBBFFRRR
|
||||
FBBBFBBLLR
|
||||
FFBFBFFLRL
|
||||
BFBFBBBRLR
|
||||
FFBBFFFRLR
|
||||
BFBBBFBRLR
|
||||
BFBFFFBLLR
|
||||
BFFFBBBRRR
|
||||
FBFFFBFRLR
|
||||
BBFBBBFLLR
|
||||
BFBFBFBLRR
|
||||
BFBBFFFLRL
|
||||
BFFBFFFLLR
|
||||
BBFBFBFLLL
|
||||
FFBFFBBLLL
|
||||
FBBBFBBRRL
|
||||
FBFFFFFRLR
|
||||
FBFBFFFLRR
|
||||
BFBBBBBRRR
|
||||
BFBFBBFRLL
|
||||
FBBFBBBRLR
|
||||
BFFBFFBRLL
|
||||
FFFBBBBRLR
|
||||
FBFBFFFRRR
|
||||
FBBFBBFLRL
|
||||
BFFBFFFRRL
|
||||
FFFBBFFRLR
|
||||
FBBBFBBRLR
|
||||
BBFBFBBLRR
|
||||
BBFBFFFLRL
|
||||
FFBFFFBLRL
|
||||
FFBBFBFRLR
|
||||
BFBBFFFLRR
|
||||
BBFBBBBRRR
|
||||
BBBFBBBLLR
|
||||
BBFBBFFRRR
|
||||
BBFFBFBLRR
|
||||
FBBFBFFRRR
|
||||
BFFBBBBRLR
|
||||
BBFBFBFLLR
|
||||
FFBFBFFLLL
|
||||
BFFBBBFLLL
|
||||
FFBBFFBRRL
|
||||
BFBBBFFRLR
|
||||
FBFBFFBRLL
|
||||
BFFFFFFRRL
|
||||
BBBFBBFRRR
|
||||
BFBBFFBLLL
|
||||
FBBFFFBLRL
|
||||
FBBBFFFRLR
|
||||
FBBBBBFLRL
|
||||
BFBBFFFLLR
|
||||
BBFBFBFRLL
|
||||
BFBFBFFLLL
|
||||
FBBBBBBLLR
|
||||
FFBFFFBLLL
|
||||
BFFBBFFRRL
|
||||
BFBFBBFLLL
|
||||
BFFBFFBLRL
|
||||
BFFFFFBRLR
|
||||
BBFBFFFRLR
|
||||
BFBFFBFRRR
|
||||
FBFBBBFRRL
|
||||
FFFBBFFLRL
|
||||
BFFBBBFLRL
|
||||
FBFFFFFLRL
|
||||
BFFFFBBLLL
|
||||
FFBBBFFLLR
|
||||
FFFBFBBRRR
|
||||
BFBFBFBRRR
|
||||
FBBBFFBLRR
|
||||
BFFBFFFRRR
|
||||
BFBBFBBRLL
|
||||
BBFFFFBLRR
|
||||
FBFBBFBLLL
|
||||
BFBBFFBRLR
|
||||
BFFBFBFLLR
|
||||
BFFBBBBRRR
|
||||
FFBBBBFRLR
|
||||
BFBBBFFRLL
|
||||
BFBFBBFLRL
|
||||
FFFBBFBLRL
|
||||
BFFFBFFLRR
|
||||
BFFFBBBRLL
|
||||
BFFBFFBLLR
|
||||
BFFFFBBLRR
|
||||
FBBFFBBRRR
|
||||
BFBFFFFRRR
|
||||
BBBFFFFLLL
|
||||
FFBBBBFLLR
|
||||
BBBBFFBLRL
|
||||
BBFFFBBLRL
|
||||
BBBFBBBRRL
|
||||
BFFBBFFLLL
|
||||
FFBFBBFLLR
|
||||
FFBFFBBLRR
|
||||
FBBFFFFRRL
|
||||
FBFFBBFLRR
|
||||
FBBFBFBRLR
|
||||
BFBBFBBLLR
|
||||
FFBFBBFRLL
|
||||
BFFBBFFRLL
|
||||
BBBBFFFLLR
|
||||
FFFBBFFLLL
|
||||
BFBFBBFRRL
|
||||
FBFBBFFLLL
|
||||
FFBBBFFLRR
|
||||
FBBFBFBLLL
|
||||
FBFBFBFLRR
|
||||
BBBFBFFLLR
|
||||
FBFFFBFLRL
|
||||
BBBBFFBRLR
|
||||
BFBFBBFRLR
|
||||
BFBBFBFRRL
|
||||
BFBBBFFLLR
|
||||
BBFBFBFLRR
|
||||
BFFBFBBRRR
|
||||
FBBFBBFRLL
|
||||
FFBFFFBLRR
|
||||
FBBBFFFRRL
|
||||
BFFBFFFRLL
|
||||
FBBFFFBRLL
|
||||
FFBFBBBLRR
|
||||
FFBFFFFRLR
|
||||
BBBBFBBRLL
|
||||
BFFBFBFRLR
|
||||
FFBBBFBLLR
|
||||
FBBBFFBLLL
|
||||
BFBFBFBRRL
|
||||
FFBFBBBLRL
|
||||
FFBBBFBLRL
|
||||
FBFBFFBLRR
|
||||
FFBFFFFLLL
|
||||
FBBFBBFLLL
|
||||
FBFFFBBRRR
|
||||
FBBFFFFLRL
|
||||
FFBBBBFRLL
|
||||
FBFFFBBRRL
|
||||
BFFBFBFLRR
|
||||
FBFFBFFLRR
|
||||
BBBFBFBLLL
|
||||
FFBFFBFRLL
|
||||
FBFBBFFRLR
|
||||
BFFBBFFLLR
|
||||
FFBBFFFRRL
|
||||
BBFFBBFRLL
|
||||
BFFFFFBLRL
|
||||
FBBFFBFRRL
|
||||
FBBFBBFRRR
|
||||
FFBFFBBRLR
|
||||
BBFBFFFRRR
|
||||
FFBFFFBRLL
|
||||
FBFFFBBRLL
|
||||
BBFBBFBRLR
|
||||
FBFBBFFLRR
|
||||
FBFBFBFRLL
|
||||
BFBBBBBLLL
|
||||
FBBBBFBRLR
|
||||
BFFBBFBRLR
|
||||
BBFFFBFLLL
|
||||
FBFFFBBLRR
|
||||
FFBBFFBRLR
|
||||
FBBBFBBRLL
|
||||
FBBBFFFLLR
|
||||
BFBBBFBRRR
|
||||
BBBBFFBRLL
|
||||
BBFFFFFLRR
|
||||
BBFBBFFLLL
|
||||
FFBFBBFLLL
|
||||
FFBBFBBLRL
|
||||
BFFFBBFLRL
|
||||
BFFBFBBRLL
|
||||
BFBBFBFRLL
|
||||
FBFBFBFLLL
|
||||
FBFFBFBRLL
|
||||
FFBFBBFRRL
|
||||
FFFBBBBLLR
|
||||
BBBBFBBLRR
|
||||
BBFBBBBLRR
|
||||
BFBBBBBLLR
|
||||
FBFFBFFRRR
|
||||
BBFBFFBRRR
|
||||
BBFFBFBRLL
|
||||
FBFFBBFLLL
|
||||
FBFBBFFRRR
|
||||
FBBFFBFLRR
|
||||
BFFBFBFRRL
|
||||
BFFFBFFRRL
|
||||
BBBFBFBLLR
|
||||
BFFFFFBRLL
|
||||
BFBFFFFLLL
|
||||
FFBBFFBLRL
|
||||
FBBBBFBLLR
|
||||
FBBFFFBRLR
|
||||
BBFBFFBLRL
|
||||
FBFFBBBRRL
|
||||
BFFFBBFRRR
|
||||
BFFFBFFRRR
|
||||
FBBBBFFRRR
|
||||
BFBFBBFLLR
|
||||
BBFFFBFLLR
|
||||
FBBFBBBLRL
|
||||
FBBFBFBLRL
|
||||
BBFFBFFLLR
|
||||
FFBFBBFRRR
|
||||
BBFBBFFRLR
|
||||
BBBBFFFLLL
|
||||
BBFBBFFLRL
|
||||
FFFBBFBLLR
|
||||
BFFFBFBRRL
|
||||
FBBBBFBRRL
|
||||
BBFFBBBLRR
|
||||
BFBBBBBLRL
|
||||
FBFFBBBLRR
|
||||
BBFBBBBLLL
|
||||
FFBFBBBLLR
|
||||
FBFBFBBRRR
|
||||
FBFFFBFLLR
|
||||
FBFFFFFLRR
|
||||
BBFBBFBRLL
|
||||
FBFBBFBRLL
|
||||
BFFBBFFLRR
|
||||
FBBFFBFLLR
|
||||
FBBBFBFRRR
|
||||
BFFFBFBLRL
|
||||
FBBFFBBLLR
|
||||
BBFFBBBRRR
|
||||
FBFFBBBRLR
|
||||
FBFFFBBLLL
|
||||
BFBFFBFRLL
|
||||
BBFFBFFLRL
|
||||
FBFFFBFRRL
|
||||
FBBFFFFLRR
|
||||
BBBBFFBLLL
|
||||
FBBFFFFRLR
|
||||
BFBBBFFRRR
|
||||
FBBBFFBRRL
|
||||
BBFBBFFLLR
|
||||
BFBFBFFLLR
|
||||
BBFFFFFLRL
|
||||
BFBFBBBLLL
|
||||
FFFBBBBRRR
|
||||
BBBFFFBLRR
|
||||
BFFFFFFRRR
|
||||
BFBBBFBLRL
|
||||
FBFFBBFRLR
|
||||
BFBFFFBRRR
|
||||
BBBFFFBRRR
|
||||
FBBFFBFLLL
|
||||
FBBFFFFLLL
|
||||
BBFFBBFLLL
|
||||
FFBFFFBRRR
|
||||
BFBFFBBRRR
|
||||
BBFBFFFLRR
|
||||
FBFBBBFLLL
|
||||
FFBBBFFRLR
|
||||
BBFBBFBRRL
|
||||
BBBFBBBLLL
|
||||
FFBFFFFLRL
|
||||
FBFBBBBLRR
|
||||
FBFBBBBRRL
|
||||
FBFBBBBLRL
|
||||
FBFBFFFRLR
|
||||
FBBFBBBRLL
|
||||
BBFBBBBRLL
|
||||
BFBFBBBRRR
|
||||
FBFBBFFLLR
|
||||
FFBFBFBLRL
|
||||
FFBBFBBRRL
|
||||
BBBFBBFRLL
|
||||
FBBFBFBLRR
|
||||
FFFBFBBLLR
|
||||
BFBBBFFLRR
|
||||
FFBFBBBLLL
|
||||
BBBFFFFLRR
|
||||
FFFBBFBLLL
|
||||
FFBFFBFLRL
|
||||
FBBFBFFRRL
|
||||
FBFBFFBLRL
|
||||
BBBFFBBLLL
|
||||
FFFBBBFRLL
|
||||
FFBFBBBRLR
|
||||
BBBFBFFRRR
|
||||
FBBFBBFRRL
|
||||
BFFFBBFLRR
|
||||
BFFFBBBLRR
|
||||
FFBBFFFLLL
|
||||
BBBFFFFRRL
|
||||
BFFBFBFLRL
|
||||
BBBFBFFLRL
|
||||
BFBFFFFRLR
|
||||
BBFFBBFLLR
|
||||
BFBBFBFLRL
|
||||
BFFFFFFLRR
|
||||
FBFBBFBRRL
|
||||
FFBFFBBRLL
|
||||
BFBFFFFRRL
|
||||
FBFBFBBLLR
|
||||
BBFBFBFRRL
|
||||
FBFBBBFRLR
|
||||
BBBBFFBLLR
|
||||
BBFBFFBRLL
|
||||
FBBBBFFLRL
|
||||
FFBFBFFRLL
|
||||
BFBFFFFRLL
|
||||
BBFFBBBLLL
|
||||
FFBFFBFRLR
|
||||
FFBBFFBLRR
|
||||
BFBBFFBRRL
|
||||
FBBBFFBLRL
|
||||
FBBFBBFRLR
|
||||
BFBFFFFLRR
|
||||
BFBFBBFRRR
|
||||
BBFBBFFLRR
|
||||
FFBFFBBLLR
|
||||
BBBBFFBLRR
|
||||
FFBBFFBRLL
|
||||
BBBBFBBLLL
|
||||
BFFFFFBLLL
|
||||
BBFBFFFLLR
|
||||
BBBBFBFRLR
|
||||
FFFBFBBLRR
|
||||
BFBBFBBRRL
|
||||
FBFBFFFLLR
|
||||
BFFBBFBLRR
|
||||
BFFFFBBRLL
|
||||
BBFFFBFLRR
|
||||
FFBFFBFLLR
|
||||
BFBFFBBRRL
|
||||
FBBBBFFLLL
|
||||
BFBFBFFRLR
|
||||
FBBBBBFRLR
|
||||
FBFFBFBRRL
|
||||
FBFFBFBLLL
|
||||
FBBFBBBRRL
|
||||
BFBFFFBRLR
|
||||
BFBFFFBLRL
|
||||
FBFFBBBLRL
|
||||
BBBFBBBLRR
|
||||
FFBBFBBLRR
|
||||
FBBBBBBRRR
|
||||
BFFFFFFLLR
|
||||
BFFFBBFRLL
|
||||
FBBFBBBLLR
|
||||
FFBBBFFRRR
|
||||
FBFFFBFRLL
|
||||
BBFFFFBRLL
|
||||
BFFBFFFRLR
|
||||
FFFBBBBRLL
|
||||
FFBFBFBRRL
|
||||
FFBBBBBLLL
|
||||
FBFBFFBLLL
|
||||
BBFFFFFLLR
|
||||
BFFBBFFRRR
|
||||
BFFFBBFRLR
|
||||
BFFBFBBLLL
|
||||
FFBFFFBRLR
|
||||
FFBBFFFRRR
|
||||
BBFFFBFRLR
|
||||
FFFBBFBLRR
|
||||
BFFBBBBLLR
|
||||
BFBFFBBLRL
|
||||
BFFFFBFLLL
|
||||
BBBFFBFLLR
|
||||
FFBBBFFRLL
|
||||
BFFBBFBLLL
|
||||
BBBFBBFLLL
|
||||
BBFFBBFRRR
|
|
@ -1,101 +1,5 @@
|
|||
# [Day 6: Custom Customs](https://adventofcode.com/2020/day/6)
|
||||
|
||||
<details><summary>Challenge description</summary>
|
||||
|
||||
*Description (c) [Eric Wastl](https://twitter.com/ericwastl)*
|
||||
|
||||
## Part One
|
||||
|
||||
As your flight approaches the regional airport where you'll switch to a much larger plane, customs declaration forms are distributed to the passengers.
|
||||
|
||||
The form asks a series of 26 yes-or-no questions marked `a` through `z`. All you need to do is identify the questions for which anyone in your group answers "yes". Since your group is just you, this doesn't take very long.
|
||||
|
||||
However, the person sitting next to you seems to be experiencing a language barrier and asks if you can help. For each of the people in their group, you write down the questions for which they answer "yes", one per line. For example:
|
||||
|
||||
```
|
||||
abcx
|
||||
abcy
|
||||
abcz
|
||||
```
|
||||
|
||||
In this group, there are `6` questions to which anyone answered "yes": `a`, `b`, `c`, `x`, `y`, and `z`. (Duplicate answers to the same question don't count extra; each question counts at most once.)
|
||||
|
||||
Another group asks for your help, then another, and eventually you've collected answers from every group on the plane (your puzzle input). Each group's answers are separated by a blank line, and within each group, each person's answers are on a single line. For example:
|
||||
|
||||
```
|
||||
abc
|
||||
|
||||
a
|
||||
b
|
||||
c
|
||||
|
||||
ab
|
||||
ac
|
||||
|
||||
a
|
||||
a
|
||||
a
|
||||
a
|
||||
|
||||
b
|
||||
```
|
||||
|
||||
This list represents answers from five groups:
|
||||
|
||||
* The first group contains one person who answered "yes" to `3` questions: `a`, `b`, and `c`.
|
||||
* The second group contains three people; combined, they answered "yes" to `3` questions: `a`, `b`, and `c`.
|
||||
* The third group contains two people; combined, they answered "yes" to `3` questions: `a`, `b`, and `c`.
|
||||
* The fourth group contains four people; combined, they answered "yes" to only `1` question, `a`.
|
||||
* The last group contains one person who answered "yes" to only `1` question, `b`.
|
||||
|
||||
In this example, the sum of these counts is `3 + 3 + 3 + 1 + 1 = 11`.
|
||||
|
||||
For each group, count the number of questions to which anyone answered "yes". What is the sum of those counts?
|
||||
|
||||
Your puzzle answer was `6310`.
|
||||
|
||||
## Part Two
|
||||
|
||||
As you finish the last group's customs declaration, you notice that you misread one word in the instructions:
|
||||
|
||||
You don't need to identify the questions to which anyone answered "yes"; you need to identify the questions to which everyone answered "yes"!
|
||||
|
||||
Using the same example as above:
|
||||
|
||||
```
|
||||
abc
|
||||
|
||||
a
|
||||
b
|
||||
c
|
||||
|
||||
ab
|
||||
ac
|
||||
|
||||
a
|
||||
a
|
||||
a
|
||||
a
|
||||
|
||||
b
|
||||
```
|
||||
|
||||
This list represents answers from five groups:
|
||||
|
||||
* In the first group, everyone (all 1 person) answered "yes" to `3` questions: `a`, `b`, and `c`.
|
||||
* In the second group, there is no question to which everyone answered "yes".
|
||||
* In the third group, everyone answered yes to only `1` question, `a`. Since some people did not answer "yes" to `b` or `c`, they don't count.
|
||||
* In the fourth group, everyone answered yes to only `1` question, `a`.
|
||||
* In the fifth group, everyone (all 1 person) answered "yes" to `1` question, `b`.
|
||||
|
||||
In this example, the sum of these counts is `3 + 0 + 1 + 1 + 1 = 6`.
|
||||
|
||||
For each group, count the number of questions to which everyone answered "yes". What is the sum of those counts?
|
||||
|
||||
Your puzzle answer was `3193`.
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>Script output</summary>
|
||||
|
||||
```
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,82 +1,5 @@
|
|||
# [Day 7: Handy Haversacks](https://adventofcode.com/2020/day/7)
|
||||
|
||||
<details><summary>Challenge description</summary>
|
||||
|
||||
*Description (c) [Eric Wastl](https://twitter.com/ericwastl)*
|
||||
|
||||
## Part One
|
||||
|
||||
You land at the regional airport in time for your next flight. In fact, it looks like you'll even have time to grab some food: all flights are currently delayed due to _issues in luggage processing_.
|
||||
|
||||
Due to recent aviation regulations, many rules (your puzzle input) are being enforced about bags and their contents; bags must be color-coded and must contain specific quantities of other color-coded bags. Apparently, nobody responsible for these regulations considered how long they would take to enforce!
|
||||
|
||||
For example, consider the following rules:
|
||||
|
||||
```
|
||||
light red bags contain 1 bright white bag, 2 muted yellow bags.
|
||||
dark orange bags contain 3 bright white bags, 4 muted yellow bags.
|
||||
bright white bags contain 1 shiny gold bag.
|
||||
muted yellow bags contain 2 shiny gold bags, 9 faded blue bags.
|
||||
shiny gold bags contain 1 dark olive bag, 2 vibrant plum bags.
|
||||
dark olive bags contain 3 faded blue bags, 4 dotted black bags.
|
||||
vibrant plum bags contain 5 faded blue bags, 6 dotted black bags.
|
||||
faded blue bags contain no other bags.
|
||||
dotted black bags contain no other bags.
|
||||
```
|
||||
|
||||
These rules specify the required contents for 9 bag types. In this example, every `faded blue` bag is empty, every `vibrant plum` bag contains 11 bags (5 `faded blue` and 6 `dotted black`), and so on.
|
||||
|
||||
You have a `shiny gold` bag. If you wanted to carry it in at least one other bag, how many different bag colors would be valid for the outermost bag? (In other words: how many colors can, eventually, contain at least one `shiny gold` bag?)
|
||||
|
||||
In the above rules, the following options would be available to you:
|
||||
|
||||
* A `bright white` bag, which can hold your `shiny gold` bag directly.
|
||||
* A `muted yellow` bag, which can hold your `shiny gold` bag directly, plus some other bags.
|
||||
* A `dark orange` bag, which can hold `bright white` and `muted yellow` bags, either of which could then hold your `shiny gold` bag.
|
||||
* A `light red` bag, which can hold `bright white` and `muted yellow` bags, either of which could then hold your `shiny gold` bag.
|
||||
|
||||
So, in this example, the number of bag colors that can eventually contain at least one `shiny gold` bag is `4`.
|
||||
|
||||
_How many bag colors can eventually contain at least one `shiny gold` bag?_ (The list of rules is quite long; make sure you get all of it.)
|
||||
|
||||
Your puzzle answer was `300`.
|
||||
|
||||
## Part Two
|
||||
|
||||
It's getting pretty expensive to fly these days - not because of ticket prices, but because of the ridiculous number of bags you need to buy!
|
||||
|
||||
Consider again your `shiny gold` bag and the rules from the above example:
|
||||
|
||||
* `faded blue` bags contain `0` other bags.
|
||||
* `dotted black` bags contain `0` other bags.
|
||||
* `vibrant plum` bags contain `11` other bags: 5 `faded blue` bags and 6 `dotted black` bags.
|
||||
* `dark olive` bags contain `7` other bags: 3 `faded blue` bags and 4 `dotted black` bags.
|
||||
|
||||
So, a single `shiny gold` bag must contain 1 `dark olive` bag (and the 7 bags within it) plus 2 `vibrant plum` bags (and the 11 bags within _each_ of those): `1 + 1*7 + 2 + 2*11` = `32` bags!
|
||||
|
||||
Of course, the actual rules have a <span title="100%">small</span> chance of going several levels deeper than this example; be sure to count all of the bags, even if the nesting becomes topologically impractical!
|
||||
|
||||
Here's another example:
|
||||
|
||||
```
|
||||
shiny gold bags contain 2 dark red bags.
|
||||
dark red bags contain 2 dark orange bags.
|
||||
dark orange bags contain 2 dark yellow bags.
|
||||
dark yellow bags contain 2 dark green bags.
|
||||
dark green bags contain 2 dark blue bags.
|
||||
dark blue bags contain 2 dark violet bags.
|
||||
dark violet bags contain no other bags.
|
||||
```
|
||||
|
||||
In this example, a single `shiny gold` bag must contain `126` other bags.
|
||||
|
||||
_How many individual bags are required inside your single `shiny gold` bag?_
|
||||
|
||||
|
||||
Your puzzle answer was `8030`.
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>Script output</summary>
|
||||
|
||||
```
|
||||
|
|
|
@ -1,594 +0,0 @@
|
|||
mirrored beige bags contain 1 drab brown bag, 3 dotted crimson bags.
|
||||
light lavender bags contain 5 clear teal bags, 2 wavy gold bags, 5 drab maroon bags, 2 posh cyan bags.
|
||||
drab gold bags contain 2 posh aqua bags, 3 dark olive bags.
|
||||
plaid lime bags contain 5 posh purple bags.
|
||||
pale brown bags contain 2 dotted teal bags, 4 light plum bags.
|
||||
vibrant orange bags contain 3 dim cyan bags, 1 shiny gold bag, 1 shiny salmon bag.
|
||||
dull olive bags contain 5 wavy yellow bags, 5 striped crimson bags, 2 dotted maroon bags.
|
||||
dull violet bags contain 1 posh orange bag, 2 muted plum bags, 2 mirrored bronze bags, 2 dull chartreuse bags.
|
||||
shiny maroon bags contain 5 wavy gold bags, 2 striped coral bags, 1 muted silver bag.
|
||||
clear red bags contain 5 plaid lavender bags.
|
||||
dull blue bags contain 3 plaid crimson bags.
|
||||
faded black bags contain 5 dull orange bags.
|
||||
clear aqua bags contain 4 dull white bags, 4 dotted cyan bags.
|
||||
pale tomato bags contain 3 bright beige bags.
|
||||
drab yellow bags contain 1 muted aqua bag, 5 dull purple bags, 5 light chartreuse bags.
|
||||
muted yellow bags contain 1 vibrant lavender bag, 3 vibrant cyan bags, 2 faded gray bags.
|
||||
bright lime bags contain 3 dull gray bags, 2 vibrant bronze bags, 4 light purple bags, 1 wavy gray bag.
|
||||
vibrant bronze bags contain 5 plaid blue bags, 2 plaid beige bags.
|
||||
posh teal bags contain 3 wavy magenta bags, 4 muted bronze bags.
|
||||
muted indigo bags contain 3 dark black bags, 3 mirrored orange bags, 2 clear crimson bags.
|
||||
dull beige bags contain 4 dim tan bags, 2 posh blue bags, 1 dull silver bag, 2 bright chartreuse bags.
|
||||
posh magenta bags contain 4 light brown bags.
|
||||
vibrant olive bags contain 2 vibrant purple bags, 3 dull gold bags, 1 clear olive bag, 3 clear plum bags.
|
||||
bright beige bags contain 5 faded teal bags, 3 light bronze bags, 5 vibrant yellow bags.
|
||||
posh gray bags contain 2 clear magenta bags, 2 wavy white bags, 2 mirrored olive bags, 2 vibrant violet bags.
|
||||
dim gray bags contain 5 plaid gold bags, 4 bright teal bags, 5 light indigo bags, 4 wavy salmon bags.
|
||||
clear indigo bags contain 3 striped salmon bags, 5 plaid maroon bags, 3 pale beige bags, 4 pale chartreuse bags.
|
||||
dark coral bags contain 1 dotted olive bag, 4 faded salmon bags.
|
||||
faded green bags contain 3 muted purple bags, 3 striped salmon bags, 1 mirrored aqua bag, 1 faded bronze bag.
|
||||
muted blue bags contain 5 drab white bags, 5 muted tomato bags, 1 dark brown bag.
|
||||
dark lime bags contain 3 striped blue bags, 5 dark silver bags, 4 bright red bags, 1 plaid crimson bag.
|
||||
muted orange bags contain 3 dark violet bags, 2 shiny tan bags.
|
||||
muted lavender bags contain 2 vibrant lime bags, 5 dotted white bags, 3 posh plum bags, 5 plaid blue bags.
|
||||
light olive bags contain 4 posh tomato bags, 2 pale chartreuse bags, 3 mirrored teal bags.
|
||||
shiny crimson bags contain 4 dim red bags, 1 vibrant crimson bag, 5 dim cyan bags, 3 faded silver bags.
|
||||
wavy salmon bags contain 2 muted olive bags.
|
||||
light red bags contain 5 wavy tomato bags, 3 clear fuchsia bags, 2 wavy blue bags, 2 vibrant fuchsia bags.
|
||||
vibrant violet bags contain 5 wavy red bags.
|
||||
vibrant green bags contain 2 wavy maroon bags, 5 wavy black bags, 1 dark bronze bag, 1 light cyan bag.
|
||||
dull black bags contain 3 mirrored white bags, 1 dim lavender bag, 1 faded blue bag.
|
||||
shiny yellow bags contain 1 dotted plum bag.
|
||||
striped white bags contain 2 pale salmon bags, 2 shiny white bags, 2 dark gray bags, 2 pale orange bags.
|
||||
posh yellow bags contain 4 dotted tan bags, 3 clear coral bags, 5 wavy magenta bags, 4 striped white bags.
|
||||
dark red bags contain 1 dotted olive bag, 2 posh orange bags, 3 striped gold bags.
|
||||
wavy black bags contain 1 bright cyan bag, 4 muted orange bags.
|
||||
dull white bags contain 4 pale red bags, 1 light lavender bag.
|
||||
mirrored tomato bags contain 1 dark green bag, 4 light yellow bags, 1 muted tan bag.
|
||||
dim gold bags contain 3 vibrant white bags.
|
||||
dim plum bags contain 4 light red bags.
|
||||
pale lime bags contain 1 pale maroon bag, 2 bright magenta bags, 5 mirrored purple bags.
|
||||
light magenta bags contain 2 bright maroon bags.
|
||||
wavy gray bags contain 5 shiny violet bags, 3 plaid bronze bags, 2 pale salmon bags, 2 mirrored maroon bags.
|
||||
light brown bags contain 5 muted tomato bags, 1 dull green bag, 2 wavy turquoise bags.
|
||||
clear teal bags contain 2 muted olive bags, 1 dull purple bag, 2 bright magenta bags.
|
||||
plaid maroon bags contain 5 light plum bags, 2 muted aqua bags, 2 light chartreuse bags, 1 dim tomato bag.
|
||||
dotted salmon bags contain 5 dark brown bags, 2 mirrored gold bags.
|
||||
light orange bags contain 4 muted aqua bags, 3 light plum bags.
|
||||
vibrant blue bags contain 1 wavy yellow bag.
|
||||
dark white bags contain 3 shiny magenta bags.
|
||||
muted red bags contain 2 faded violet bags.
|
||||
vibrant crimson bags contain 5 striped gold bags, 5 striped white bags, 4 bright lavender bags.
|
||||
dim brown bags contain 5 dotted olive bags, 2 striped white bags, 3 shiny black bags, 5 striped beige bags.
|
||||
wavy indigo bags contain 1 dim brown bag, 2 plaid yellow bags, 1 faded yellow bag.
|
||||
dim coral bags contain 5 light orange bags, 3 bright red bags, 1 wavy turquoise bag, 2 pale maroon bags.
|
||||
mirrored salmon bags contain 1 drab blue bag, 3 muted bronze bags, 1 muted brown bag.
|
||||
striped olive bags contain 1 dim bronze bag.
|
||||
bright tan bags contain 5 dark brown bags.
|
||||
drab violet bags contain 5 mirrored plum bags, 2 mirrored purple bags.
|
||||
dark purple bags contain 3 striped yellow bags, 1 pale orange bag, 4 dull fuchsia bags, 5 faded silver bags.
|
||||
striped tan bags contain 3 shiny salmon bags, 5 striped brown bags, 1 light gray bag.
|
||||
posh aqua bags contain 1 striped crimson bag.
|
||||
mirrored black bags contain 2 pale crimson bags, 3 posh lavender bags.
|
||||
faded indigo bags contain 5 dotted purple bags, 5 bright green bags.
|
||||
dim aqua bags contain 3 muted coral bags, 3 shiny fuchsia bags, 2 light indigo bags, 5 muted cyan bags.
|
||||
dim bronze bags contain 2 faded tomato bags, 4 faded tan bags, 5 dull teal bags.
|
||||
dotted green bags contain 1 vibrant gray bag, 4 wavy silver bags, 2 posh lavender bags, 3 wavy magenta bags.
|
||||
faded gold bags contain 5 pale salmon bags, 2 wavy silver bags, 2 bright olive bags, 2 plaid blue bags.
|
||||
muted plum bags contain 1 light fuchsia bag, 2 posh silver bags, 5 mirrored lime bags, 5 faded silver bags.
|
||||
striped green bags contain 1 plaid gray bag.
|
||||
posh turquoise bags contain 4 drab maroon bags.
|
||||
dim violet bags contain no other bags.
|
||||
striped violet bags contain 5 pale aqua bags, 2 wavy coral bags.
|
||||
dotted yellow bags contain 2 faded lime bags, 4 dull turquoise bags.
|
||||
muted aqua bags contain no other bags.
|
||||
wavy maroon bags contain 2 dim fuchsia bags, 4 mirrored teal bags, 1 muted brown bag, 2 muted gray bags.
|
||||
clear maroon bags contain 4 dotted maroon bags, 4 pale blue bags.
|
||||
dim red bags contain 1 pale lime bag, 4 dim cyan bags.
|
||||
dark maroon bags contain 4 dark silver bags, 2 pale indigo bags.
|
||||
faded red bags contain 1 faded black bag, 4 bright orange bags, 1 posh gray bag, 1 striped crimson bag.
|
||||
dark turquoise bags contain 3 vibrant tan bags, 4 pale brown bags.
|
||||
pale gray bags contain 3 dark gray bags, 1 wavy red bag, 1 dark plum bag.
|
||||
shiny teal bags contain 5 light yellow bags, 3 striped beige bags, 5 plaid red bags, 2 faded maroon bags.
|
||||
posh indigo bags contain 3 posh cyan bags, 2 bright lavender bags.
|
||||
striped chartreuse bags contain 4 dim maroon bags, 1 pale coral bag, 2 bright plum bags, 3 clear black bags.
|
||||
faded violet bags contain 5 dark purple bags, 2 plaid tan bags, 4 faded yellow bags, 1 faded salmon bag.
|
||||
clear gray bags contain 3 light lavender bags.
|
||||
muted brown bags contain 3 pale orange bags, 2 bright lavender bags, 3 clear red bags, 1 dark tan bag.
|
||||
dotted gold bags contain 2 plaid aqua bags, 3 pale fuchsia bags, 4 mirrored blue bags, 2 dull maroon bags.
|
||||
dark yellow bags contain 3 dotted maroon bags, 2 wavy coral bags.
|
||||
dull tan bags contain 2 plaid indigo bags, 3 dotted gray bags.
|
||||
muted salmon bags contain 4 dim lime bags.
|
||||
clear turquoise bags contain 3 mirrored green bags.
|
||||
dark chartreuse bags contain 2 vibrant coral bags.
|
||||
plaid green bags contain 5 pale indigo bags, 2 faded blue bags, 2 bright lavender bags, 1 drab indigo bag.
|
||||
dim black bags contain 5 light tomato bags.
|
||||
posh blue bags contain 1 dull lime bag, 1 posh maroon bag, 5 dim tomato bags.
|
||||
bright violet bags contain 3 dim black bags, 4 faded red bags, 5 bright salmon bags, 3 vibrant tomato bags.
|
||||
faded plum bags contain 4 clear teal bags, 1 faded lavender bag, 3 wavy crimson bags, 4 drab salmon bags.
|
||||
bright fuchsia bags contain 2 vibrant teal bags.
|
||||
posh olive bags contain 3 dotted gray bags.
|
||||
muted black bags contain 2 dotted coral bags, 5 dotted lime bags, 5 pale teal bags, 4 light plum bags.
|
||||
mirrored coral bags contain 4 drab yellow bags, 2 muted olive bags, 2 dotted teal bags.
|
||||
muted lime bags contain 1 clear white bag, 1 striped yellow bag, 1 vibrant silver bag, 4 striped violet bags.
|
||||
dark teal bags contain 3 light plum bags, 5 posh salmon bags, 2 posh white bags.
|
||||
muted magenta bags contain 5 faded gray bags, 1 clear red bag, 3 muted maroon bags.
|
||||
bright indigo bags contain 4 pale chartreuse bags, 3 faded blue bags.
|
||||
striped crimson bags contain 3 dotted red bags, 5 dark tan bags, 2 plaid lime bags.
|
||||
clear yellow bags contain 5 dark bronze bags, 1 mirrored olive bag.
|
||||
dark olive bags contain 5 striped gold bags, 1 faded bronze bag, 5 wavy blue bags, 3 bright lavender bags.
|
||||
clear black bags contain 5 vibrant white bags, 3 wavy white bags, 1 mirrored black bag.
|
||||
wavy tan bags contain 5 vibrant gray bags, 2 shiny salmon bags, 5 posh purple bags, 5 shiny white bags.
|
||||
light tomato bags contain 5 striped blue bags, 3 posh cyan bags.
|
||||
dull chartreuse bags contain 4 dim white bags, 5 faded violet bags, 1 mirrored coral bag.
|
||||
mirrored gold bags contain 1 drab white bag.
|
||||
striped gray bags contain 3 mirrored teal bags.
|
||||
striped fuchsia bags contain 2 dotted lime bags, 5 clear olive bags, 3 dotted yellow bags.
|
||||
muted gold bags contain 1 dark olive bag, 3 posh plum bags, 5 muted magenta bags, 1 light lavender bag.
|
||||
striped silver bags contain 1 dark brown bag, 2 drab salmon bags.
|
||||
plaid bronze bags contain 3 light plum bags, 4 plaid lime bags, 2 faded orange bags, 1 mirrored coral bag.
|
||||
pale tan bags contain 5 posh gray bags, 4 dotted violet bags, 5 posh fuchsia bags, 5 light silver bags.
|
||||
dotted tomato bags contain 3 vibrant white bags, 2 posh yellow bags.
|
||||
pale maroon bags contain 4 dotted teal bags, 5 bright olive bags, 4 striped gold bags, 4 bright lavender bags.
|
||||
pale coral bags contain 5 dull cyan bags, 1 muted aqua bag, 1 dull lime bag, 1 pale orange bag.
|
||||
drab blue bags contain 4 shiny olive bags, 5 faded maroon bags.
|
||||
dull turquoise bags contain 2 muted olive bags, 4 pale green bags.
|
||||
dotted violet bags contain 3 plaid tan bags, 5 wavy turquoise bags, 1 plaid maroon bag.
|
||||
shiny chartreuse bags contain 1 mirrored silver bag.
|
||||
clear crimson bags contain 5 bright plum bags, 2 muted silver bags.
|
||||
faded tan bags contain 4 pale indigo bags, 3 wavy red bags, 5 light gold bags.
|
||||
light black bags contain 4 dark aqua bags.
|
||||
plaid yellow bags contain 2 pale silver bags, 1 wavy blue bag, 4 bright lavender bags.
|
||||
faded silver bags contain 5 clear tan bags.
|
||||
light yellow bags contain 1 pale beige bag.
|
||||
drab bronze bags contain 4 pale maroon bags, 5 faded tomato bags, 1 vibrant crimson bag, 4 dull indigo bags.
|
||||
dark plum bags contain 2 dark gray bags, 1 pale chartreuse bag.
|
||||
muted green bags contain 1 dull gray bag, 1 light purple bag.
|
||||
clear white bags contain 5 dotted plum bags, 2 light orange bags.
|
||||
faded chartreuse bags contain 1 dim crimson bag, 1 light gray bag.
|
||||
mirrored aqua bags contain 2 dim teal bags, 4 muted silver bags, 1 striped salmon bag.
|
||||
light bronze bags contain 5 pale purple bags, 1 faded teal bag.
|
||||
mirrored indigo bags contain 1 wavy red bag, 5 faded tomato bags.
|
||||
plaid chartreuse bags contain 5 bright cyan bags.
|
||||
light fuchsia bags contain 5 faded violet bags.
|
||||
mirrored orange bags contain 1 drab lavender bag.
|
||||
light indigo bags contain 5 wavy plum bags, 5 vibrant chartreuse bags.
|
||||
posh black bags contain 1 dull brown bag.
|
||||
mirrored yellow bags contain 2 shiny gray bags.
|
||||
bright white bags contain 2 shiny silver bags, 1 dotted lime bag.
|
||||
dark brown bags contain 5 bright magenta bags, 1 striped beige bag, 5 pale beige bags.
|
||||
faded lavender bags contain 3 faded gold bags, 3 vibrant crimson bags, 2 pale aqua bags.
|
||||
dotted cyan bags contain 5 drab salmon bags, 5 clear blue bags, 3 wavy blue bags, 3 posh cyan bags.
|
||||
clear coral bags contain 2 light indigo bags.
|
||||
plaid tan bags contain 3 vibrant teal bags, 4 mirrored gold bags.
|
||||
striped magenta bags contain 4 posh magenta bags, 4 dim chartreuse bags, 1 muted lime bag, 4 vibrant aqua bags.
|
||||
pale red bags contain 5 dull plum bags, 3 wavy blue bags, 4 pale beige bags.
|
||||
posh cyan bags contain 5 shiny white bags, 4 muted coral bags, 2 pale chartreuse bags, 2 dark gray bags.
|
||||
posh tan bags contain 1 plaid tan bag, 5 dim tan bags.
|
||||
dotted coral bags contain 5 pale plum bags, 1 dull olive bag, 4 light gray bags, 3 pale yellow bags.
|
||||
shiny silver bags contain 3 dull teal bags, 2 dotted teal bags, 2 bright magenta bags.
|
||||
drab white bags contain 5 dark violet bags.
|
||||
plaid teal bags contain 2 pale green bags, 4 dim cyan bags, 1 drab white bag, 3 dull salmon bags.
|
||||
faded magenta bags contain 1 posh blue bag, 4 clear coral bags.
|
||||
muted fuchsia bags contain 1 faded aqua bag, 4 mirrored magenta bags, 2 wavy purple bags.
|
||||
dark lavender bags contain 5 dull fuchsia bags, 1 dull salmon bag, 3 plaid blue bags.
|
||||
bright magenta bags contain 3 shiny white bags, 4 pale chartreuse bags, 3 drab yellow bags, 1 dull purple bag.
|
||||
vibrant lime bags contain 4 striped coral bags, 3 shiny salmon bags, 3 light lime bags, 5 dark tan bags.
|
||||
vibrant beige bags contain 2 mirrored turquoise bags, 4 dim orange bags, 4 muted green bags.
|
||||
drab brown bags contain 4 plaid gray bags.
|
||||
dotted plum bags contain 4 dark plum bags, 3 pale brown bags.
|
||||
vibrant turquoise bags contain 4 dark purple bags.
|
||||
dark silver bags contain 3 faded blue bags, 4 dim aqua bags, 5 plaid turquoise bags, 1 bright cyan bag.
|
||||
posh silver bags contain 4 faded tomato bags, 2 muted olive bags.
|
||||
drab beige bags contain 1 pale beige bag.
|
||||
mirrored brown bags contain 2 posh olive bags, 4 vibrant teal bags, 5 pale red bags.
|
||||
plaid black bags contain 1 clear teal bag, 3 shiny crimson bags.
|
||||
shiny violet bags contain 3 mirrored white bags.
|
||||
wavy fuchsia bags contain 3 wavy gold bags.
|
||||
bright gold bags contain 1 dark violet bag, 5 dark beige bags, 2 bright salmon bags.
|
||||
light gold bags contain 5 bright magenta bags, 3 dim violet bags, 1 light lavender bag, 2 shiny white bags.
|
||||
dark orange bags contain 5 muted olive bags.
|
||||
dull gold bags contain 1 light tomato bag, 4 striped lavender bags, 2 shiny tomato bags, 2 plaid lime bags.
|
||||
mirrored crimson bags contain 4 plaid crimson bags, 4 shiny cyan bags, 2 bright cyan bags.
|
||||
dim tan bags contain 3 striped tan bags, 5 plaid crimson bags.
|
||||
shiny turquoise bags contain 5 light chartreuse bags, 2 pale chartreuse bags, 4 dotted teal bags.
|
||||
wavy beige bags contain 5 pale aqua bags, 2 pale brown bags.
|
||||
shiny orange bags contain 1 dotted gray bag, 1 plaid chartreuse bag, 2 wavy purple bags, 2 dim white bags.
|
||||
dark black bags contain 3 dim violet bags, 4 striped brown bags.
|
||||
dotted purple bags contain 4 drab red bags, 3 posh cyan bags, 3 dotted green bags, 3 dark green bags.
|
||||
bright yellow bags contain 4 muted coral bags.
|
||||
pale teal bags contain 1 vibrant yellow bag, 4 faded lavender bags.
|
||||
light purple bags contain 4 drab yellow bags, 5 plaid red bags, 5 wavy white bags, 3 bright olive bags.
|
||||
mirrored lavender bags contain 5 dotted beige bags, 2 dark coral bags.
|
||||
wavy chartreuse bags contain no other bags.
|
||||
pale purple bags contain 2 posh plum bags, 3 dim silver bags, 5 vibrant chartreuse bags, 4 pale salmon bags.
|
||||
dotted gray bags contain 5 muted tomato bags.
|
||||
vibrant maroon bags contain 3 light red bags.
|
||||
plaid purple bags contain 5 bright magenta bags, 2 vibrant cyan bags, 4 drab maroon bags.
|
||||
dim maroon bags contain 3 dotted teal bags, 2 striped silver bags, 4 dim white bags, 4 pale purple bags.
|
||||
posh lavender bags contain 5 light magenta bags, 1 dim lime bag, 1 vibrant red bag, 1 light purple bag.
|
||||
wavy tomato bags contain 1 shiny tan bag, 4 plaid blue bags.
|
||||
muted turquoise bags contain 3 drab olive bags, 2 dotted beige bags, 2 wavy turquoise bags, 3 faded yellow bags.
|
||||
shiny bronze bags contain 5 dim black bags.
|
||||
dim white bags contain 5 dim purple bags, 4 pale red bags, 5 plaid lime bags, 5 striped silver bags.
|
||||
faded maroon bags contain 2 dark tan bags, 4 dotted olive bags, 2 striped gold bags.
|
||||
muted silver bags contain 1 plaid red bag.
|
||||
dark salmon bags contain 2 drab maroon bags, 5 posh green bags.
|
||||
pale chartreuse bags contain 5 dim violet bags, 4 muted aqua bags.
|
||||
bright chartreuse bags contain 5 shiny cyan bags.
|
||||
plaid gold bags contain 5 shiny chartreuse bags, 2 clear red bags, 1 bright yellow bag, 5 mirrored lime bags.
|
||||
light lime bags contain 4 dotted red bags.
|
||||
bright tomato bags contain 2 wavy orange bags.
|
||||
wavy white bags contain 3 striped white bags, 3 pale beige bags, 1 light plum bag.
|
||||
mirrored gray bags contain 1 dull gray bag, 4 plaid beige bags, 3 wavy turquoise bags, 1 pale maroon bag.
|
||||
shiny purple bags contain 2 muted maroon bags.
|
||||
mirrored lime bags contain 2 mirrored fuchsia bags, 5 dark lavender bags, 4 dull lime bags.
|
||||
dotted tan bags contain 2 pale maroon bags.
|
||||
mirrored olive bags contain 2 drab beige bags, 4 plaid crimson bags, 4 bright turquoise bags, 3 clear gold bags.
|
||||
shiny salmon bags contain 1 faded tomato bag, 3 drab white bags, 1 faded crimson bag.
|
||||
shiny olive bags contain 3 bright olive bags, 4 light orange bags, 1 pale maroon bag, 3 posh purple bags.
|
||||
wavy aqua bags contain 3 light brown bags, 3 dotted salmon bags, 3 vibrant brown bags, 1 dark beige bag.
|
||||
bright bronze bags contain 1 clear white bag, 3 clear cyan bags, 1 shiny black bag, 5 bright red bags.
|
||||
dim lime bags contain 5 drab lavender bags, 2 vibrant aqua bags.
|
||||
dull cyan bags contain 3 mirrored coral bags.
|
||||
dark crimson bags contain 5 faded yellow bags, 5 faded maroon bags, 3 faded magenta bags.
|
||||
plaid silver bags contain 2 dull maroon bags, 3 drab cyan bags.
|
||||
plaid aqua bags contain 1 wavy silver bag, 2 plaid orange bags.
|
||||
bright black bags contain 1 posh silver bag.
|
||||
vibrant silver bags contain 4 clear chartreuse bags, 2 pale brown bags, 4 pale orange bags, 2 light lavender bags.
|
||||
wavy purple bags contain 5 shiny tan bags, 4 dim brown bags, 4 faded crimson bags.
|
||||
posh beige bags contain 5 plaid olive bags, 2 dotted turquoise bags.
|
||||
striped orange bags contain 5 dark chartreuse bags, 3 wavy fuchsia bags, 4 wavy coral bags, 2 plaid indigo bags.
|
||||
clear bronze bags contain 1 faded orange bag, 5 shiny teal bags.
|
||||
dull tomato bags contain 5 muted gray bags, 5 muted brown bags, 4 dull teal bags, 2 plaid maroon bags.
|
||||
plaid cyan bags contain 5 dull plum bags, 1 clear red bag, 1 shiny salmon bag.
|
||||
mirrored teal bags contain 2 dim purple bags, 4 muted coral bags.
|
||||
vibrant aqua bags contain 1 clear gold bag, 1 dark red bag, 5 dull purple bags.
|
||||
dull magenta bags contain 2 dull lavender bags.
|
||||
light maroon bags contain 3 clear plum bags, 2 plaid olive bags, 5 dull blue bags.
|
||||
wavy blue bags contain 1 pale orange bag, 1 pale brown bag, 2 striped salmon bags.
|
||||
bright crimson bags contain 5 clear gold bags.
|
||||
striped aqua bags contain 2 bright brown bags, 5 faded tan bags, 3 wavy chartreuse bags.
|
||||
muted gray bags contain 1 dotted red bag.
|
||||
posh coral bags contain 5 vibrant gray bags, 3 faded teal bags, 3 dim lavender bags.
|
||||
bright plum bags contain 5 mirrored aqua bags, 4 shiny tan bags, 3 dim tomato bags.
|
||||
shiny white bags contain no other bags.
|
||||
plaid crimson bags contain 3 faded gray bags, 3 wavy white bags, 1 faded lavender bag, 1 mirrored gold bag.
|
||||
dull indigo bags contain 3 shiny olive bags.
|
||||
mirrored silver bags contain 4 drab blue bags, 1 mirrored maroon bag, 2 plaid maroon bags.
|
||||
dotted white bags contain 3 dotted fuchsia bags, 5 vibrant aqua bags, 1 muted tan bag.
|
||||
posh white bags contain 3 light lavender bags, 1 wavy white bag, 4 dotted teal bags.
|
||||
dim salmon bags contain 5 muted magenta bags.
|
||||
shiny blue bags contain 5 light chartreuse bags, 1 shiny fuchsia bag, 4 muted bronze bags.
|
||||
faded turquoise bags contain 2 light silver bags, 4 dull salmon bags, 4 dim teal bags.
|
||||
dim indigo bags contain 1 dark bronze bag, 5 muted brown bags, 2 pale magenta bags.
|
||||
bright salmon bags contain 3 vibrant white bags, 2 dark tan bags.
|
||||
clear violet bags contain 3 shiny coral bags, 2 wavy purple bags.
|
||||
posh crimson bags contain 5 posh silver bags, 5 posh plum bags, 2 dull crimson bags, 3 posh blue bags.
|
||||
faded salmon bags contain 2 posh white bags, 5 mirrored fuchsia bags, 2 wavy fuchsia bags, 1 dotted tan bag.
|
||||
bright cyan bags contain 5 striped beige bags.
|
||||
light gray bags contain 5 dotted red bags, 1 faded gray bag, 3 bright olive bags.
|
||||
mirrored green bags contain 3 dotted lime bags, 2 dull salmon bags, 2 dim indigo bags.
|
||||
dark tan bags contain 2 pale green bags.
|
||||
light tan bags contain 4 dark coral bags, 3 clear indigo bags.
|
||||
pale blue bags contain 5 dull brown bags, 1 posh white bag.
|
||||
clear chartreuse bags contain 5 dim tomato bags, 2 vibrant crimson bags, 5 pale green bags, 4 shiny white bags.
|
||||
wavy lavender bags contain 5 posh gray bags, 2 dark olive bags, 4 drab yellow bags, 4 light blue bags.
|
||||
faded olive bags contain 1 bright yellow bag.
|
||||
pale silver bags contain 1 pale beige bag, 4 striped white bags.
|
||||
clear cyan bags contain 1 light green bag, 5 striped lavender bags, 4 muted bronze bags, 5 light yellow bags.
|
||||
mirrored white bags contain 3 shiny green bags, 2 bright silver bags, 2 posh black bags.
|
||||
dark bronze bags contain 3 dotted red bags.
|
||||
faded gray bags contain 5 faded crimson bags.
|
||||
dull purple bags contain no other bags.
|
||||
striped cyan bags contain 4 dull purple bags, 1 shiny fuchsia bag, 3 striped green bags, 2 muted teal bags.
|
||||
posh brown bags contain 2 shiny gray bags, 1 dull teal bag.
|
||||
bright blue bags contain 4 wavy gold bags, 4 muted beige bags, 1 posh salmon bag, 1 vibrant yellow bag.
|
||||
mirrored violet bags contain 5 light plum bags, 4 plaid yellow bags, 2 dim brown bags, 5 clear tan bags.
|
||||
wavy bronze bags contain 2 drab blue bags.
|
||||
muted purple bags contain 4 muted olive bags.
|
||||
dotted olive bags contain 2 dull orange bags, 3 wavy gold bags, 3 bright olive bags, 5 pale green bags.
|
||||
dark gray bags contain no other bags.
|
||||
dim beige bags contain 1 mirrored olive bag, 5 dim cyan bags.
|
||||
drab green bags contain 3 wavy gold bags, 2 clear gold bags, 4 dull cyan bags, 1 pale yellow bag.
|
||||
clear lavender bags contain 1 dull crimson bag, 4 pale red bags.
|
||||
drab black bags contain 3 bright white bags, 3 dim white bags, 4 light teal bags.
|
||||
plaid coral bags contain 3 light plum bags, 4 wavy aqua bags.
|
||||
pale white bags contain 5 light gray bags, 2 light indigo bags, 4 shiny blue bags.
|
||||
drab lime bags contain 3 dull lime bags, 2 dotted gray bags.
|
||||
shiny green bags contain 3 striped gold bags, 3 faded crimson bags.
|
||||
light beige bags contain 3 mirrored maroon bags, 1 bright magenta bag, 1 vibrant coral bag, 4 dull fuchsia bags.
|
||||
striped lime bags contain 5 dim magenta bags, 2 muted orange bags, 4 dull aqua bags.
|
||||
shiny tomato bags contain 1 dim blue bag.
|
||||
pale gold bags contain 1 clear indigo bag, 5 posh gold bags.
|
||||
striped beige bags contain 3 dark plum bags, 2 pale salmon bags, 1 striped white bag, 5 dull purple bags.
|
||||
dull brown bags contain 5 pale yellow bags, 4 pale silver bags, 4 pale red bags.
|
||||
pale aqua bags contain 4 posh silver bags.
|
||||
shiny gold bags contain 5 pale green bags, 5 faded gold bags.
|
||||
muted tan bags contain 2 vibrant red bags, 3 faded crimson bags.
|
||||
striped red bags contain 1 striped tan bag, 4 dim purple bags, 2 posh lime bags.
|
||||
wavy red bags contain 3 clear indigo bags.
|
||||
light aqua bags contain 3 light coral bags, 3 drab salmon bags, 1 bright lavender bag, 1 drab turquoise bag.
|
||||
shiny brown bags contain 3 bright indigo bags, 3 plaid beige bags.
|
||||
striped maroon bags contain 3 dim silver bags, 3 mirrored silver bags.
|
||||
dim crimson bags contain 3 wavy yellow bags, 2 pale lime bags, 5 dull magenta bags.
|
||||
clear salmon bags contain 4 dull fuchsia bags, 1 dull maroon bag, 5 light green bags.
|
||||
dark green bags contain 5 striped beige bags, 4 shiny gray bags, 1 shiny black bag.
|
||||
vibrant red bags contain 4 drab blue bags, 3 light plum bags, 1 posh orange bag, 4 dull silver bags.
|
||||
dotted blue bags contain 5 dull coral bags.
|
||||
vibrant purple bags contain 5 dull tan bags, 2 faded chartreuse bags, 4 light aqua bags.
|
||||
striped yellow bags contain 3 faded gold bags, 4 wavy gold bags, 2 pale brown bags, 1 light yellow bag.
|
||||
pale magenta bags contain 2 faded crimson bags, 3 striped violet bags, 3 vibrant chartreuse bags, 3 wavy red bags.
|
||||
dull fuchsia bags contain 1 pale brown bag, 5 dim purple bags, 2 pale gray bags.
|
||||
wavy brown bags contain 4 clear brown bags, 4 faded aqua bags, 4 muted tomato bags.
|
||||
vibrant yellow bags contain 3 dark tan bags, 3 light lavender bags.
|
||||
light crimson bags contain 5 shiny gray bags, 3 dim green bags, 3 dark black bags.
|
||||
vibrant chartreuse bags contain 4 plaid blue bags, 5 pale beige bags.
|
||||
faded yellow bags contain 5 wavy gold bags, 3 plaid bronze bags, 5 plaid red bags.
|
||||
drab orange bags contain 1 pale gray bag, 3 drab lavender bags, 3 dull lime bags, 1 wavy olive bag.
|
||||
light chartreuse bags contain no other bags.
|
||||
shiny cyan bags contain 2 striped beige bags, 4 mirrored maroon bags, 4 dark yellow bags, 4 bright indigo bags.
|
||||
dull aqua bags contain 5 bright white bags, 3 dull coral bags, 1 faded yellow bag, 4 dull gray bags.
|
||||
muted teal bags contain 2 bright silver bags, 3 faded orange bags.
|
||||
pale bronze bags contain 5 posh teal bags, 3 drab indigo bags, 3 dim tomato bags.
|
||||
vibrant salmon bags contain 2 dull salmon bags.
|
||||
plaid blue bags contain 2 pale salmon bags, 2 dark gray bags.
|
||||
faded beige bags contain 1 vibrant plum bag, 4 light lime bags, 1 posh indigo bag, 4 posh brown bags.
|
||||
bright aqua bags contain 2 dotted plum bags, 1 dotted violet bag, 5 light orange bags, 1 muted chartreuse bag.
|
||||
muted chartreuse bags contain 3 plaid lavender bags, 1 wavy beige bag.
|
||||
dark violet bags contain 2 wavy crimson bags.
|
||||
dull yellow bags contain 2 plaid red bags, 2 striped brown bags, 1 wavy plum bag.
|
||||
bright olive bags contain 3 dark gray bags.
|
||||
bright green bags contain 4 muted aqua bags, 2 wavy tomato bags.
|
||||
clear magenta bags contain 5 plaid maroon bags, 2 vibrant teal bags, 3 clear indigo bags.
|
||||
pale plum bags contain 1 pale purple bag, 4 vibrant fuchsia bags.
|
||||
plaid beige bags contain 2 posh tomato bags, 3 mirrored maroon bags, 5 light purple bags.
|
||||
plaid tomato bags contain 4 dull gray bags.
|
||||
posh fuchsia bags contain 4 mirrored indigo bags, 4 faded salmon bags, 1 striped orange bag, 3 striped yellow bags.
|
||||
dull salmon bags contain 1 vibrant crimson bag, 4 muted olive bags, 3 dark brown bags.
|
||||
striped brown bags contain 1 dull coral bag, 3 shiny silver bags, 4 posh white bags.
|
||||
drab plum bags contain 5 wavy olive bags, 5 shiny tomato bags, 3 bright green bags.
|
||||
vibrant tan bags contain 4 pale beige bags.
|
||||
bright turquoise bags contain 4 vibrant teal bags, 3 dotted teal bags, 2 dark violet bags, 4 bright magenta bags.
|
||||
wavy lime bags contain 5 wavy green bags, 1 muted gold bag, 1 dim purple bag.
|
||||
striped gold bags contain 3 posh cyan bags, 3 muted coral bags, 3 wavy silver bags.
|
||||
dull orange bags contain 2 striped beige bags, 2 posh cyan bags, 2 shiny gold bags.
|
||||
dotted lavender bags contain 5 vibrant aqua bags, 4 bright turquoise bags, 2 drab turquoise bags, 3 dim aqua bags.
|
||||
mirrored blue bags contain 5 bright teal bags.
|
||||
bright coral bags contain 3 plaid salmon bags, 4 pale gray bags.
|
||||
dark fuchsia bags contain 2 vibrant aqua bags, 2 bright salmon bags.
|
||||
pale fuchsia bags contain 5 drab blue bags, 1 striped plum bag, 3 muted teal bags.
|
||||
dotted indigo bags contain 5 striped lavender bags, 2 bright cyan bags, 2 light gray bags, 3 plaid beige bags.
|
||||
posh tomato bags contain 3 dim red bags, 4 clear coral bags, 5 mirrored olive bags, 2 dull cyan bags.
|
||||
dull silver bags contain 2 plaid red bags, 2 faded silver bags, 5 mirrored maroon bags.
|
||||
mirrored fuchsia bags contain 2 bright magenta bags, 1 dark gray bag.
|
||||
muted cyan bags contain 2 mirrored teal bags, 3 dull fuchsia bags, 5 dotted olive bags.
|
||||
shiny black bags contain 2 shiny white bags.
|
||||
dull crimson bags contain 2 dim tomato bags, 1 clear chartreuse bag, 3 dull teal bags.
|
||||
mirrored turquoise bags contain 3 dull maroon bags, 1 shiny aqua bag, 2 mirrored violet bags.
|
||||
plaid olive bags contain 3 striped brown bags, 5 muted olive bags, 4 faded tomato bags, 1 vibrant teal bag.
|
||||
posh lime bags contain 3 plaid indigo bags, 2 light yellow bags, 2 pale blue bags, 4 bright maroon bags.
|
||||
plaid plum bags contain 3 muted orange bags, 1 dim tan bag.
|
||||
dotted magenta bags contain 1 mirrored teal bag, 3 light lime bags, 5 shiny tan bags, 2 vibrant coral bags.
|
||||
dark gold bags contain 2 muted orange bags, 4 mirrored yellow bags.
|
||||
pale green bags contain 5 striped white bags, 1 mirrored coral bag, 3 dark plum bags, 5 clear teal bags.
|
||||
drab red bags contain 1 vibrant coral bag, 4 drab lavender bags, 5 posh orange bags, 3 striped white bags.
|
||||
posh green bags contain 1 faded yellow bag, 3 light blue bags.
|
||||
shiny lime bags contain 1 pale beige bag, 1 dark silver bag.
|
||||
plaid magenta bags contain 2 light beige bags, 5 muted plum bags, 1 shiny coral bag.
|
||||
posh salmon bags contain 2 vibrant brown bags, 5 pale teal bags, 4 bright cyan bags, 4 shiny lime bags.
|
||||
dotted orange bags contain 4 plaid cyan bags, 5 light magenta bags, 3 dull chartreuse bags, 5 faded orange bags.
|
||||
dull lavender bags contain 3 vibrant gray bags, 5 vibrant magenta bags, 2 dim brown bags, 5 mirrored silver bags.
|
||||
shiny indigo bags contain 4 posh purple bags, 4 muted tomato bags.
|
||||
light silver bags contain 2 striped crimson bags, 5 striped turquoise bags, 5 pale black bags.
|
||||
wavy crimson bags contain 5 pale yellow bags.
|
||||
dim purple bags contain 4 bright cyan bags, 5 dark tan bags, 1 posh silver bag, 2 pale maroon bags.
|
||||
mirrored cyan bags contain 5 mirrored aqua bags, 4 dim tomato bags, 1 wavy gold bag.
|
||||
wavy turquoise bags contain 4 pale orange bags.
|
||||
pale crimson bags contain 5 light crimson bags.
|
||||
drab olive bags contain 5 shiny silver bags, 5 shiny white bags, 1 dark olive bag.
|
||||
light violet bags contain 5 posh lime bags, 4 dull salmon bags.
|
||||
clear gold bags contain 2 dark gray bags.
|
||||
dark blue bags contain 1 faded plum bag, 4 faded fuchsia bags, 5 clear red bags, 1 dull orange bag.
|
||||
dim orange bags contain 3 light blue bags, 1 faded orange bag, 1 dim fuchsia bag, 5 drab yellow bags.
|
||||
mirrored tan bags contain 3 mirrored gold bags.
|
||||
posh purple bags contain 2 posh silver bags, 1 dark brown bag, 3 dotted olive bags, 4 shiny white bags.
|
||||
shiny coral bags contain 4 bright indigo bags, 5 plaid teal bags.
|
||||
faded fuchsia bags contain 4 shiny maroon bags, 4 clear bronze bags.
|
||||
plaid brown bags contain 2 posh tan bags, 2 faded olive bags, 3 dull tomato bags, 4 dark plum bags.
|
||||
faded coral bags contain 3 light yellow bags, 1 pale red bag, 5 bright cyan bags, 2 dark coral bags.
|
||||
drab gray bags contain 5 light tan bags, 3 vibrant violet bags.
|
||||
striped indigo bags contain 5 vibrant tomato bags, 2 dull orange bags, 5 bright maroon bags.
|
||||
dull red bags contain 1 dark lime bag, 1 mirrored maroon bag, 3 vibrant white bags.
|
||||
plaid indigo bags contain 1 mirrored coral bag, 4 dotted red bags, 2 wavy chartreuse bags.
|
||||
faded lime bags contain 1 faded yellow bag, 5 faded gold bags, 4 faded aqua bags, 1 wavy tomato bag.
|
||||
clear tan bags contain 3 posh silver bags, 5 dull plum bags.
|
||||
clear lime bags contain 5 dull lavender bags, 3 faded magenta bags, 2 shiny olive bags, 1 posh orange bag.
|
||||
dotted teal bags contain 3 drab yellow bags.
|
||||
wavy violet bags contain 5 dotted beige bags.
|
||||
faded bronze bags contain 2 pale maroon bags, 4 pale silver bags, 4 mirrored fuchsia bags.
|
||||
striped black bags contain 4 dim silver bags.
|
||||
wavy orange bags contain 5 muted coral bags.
|
||||
plaid violet bags contain 4 posh turquoise bags.
|
||||
muted violet bags contain 3 plaid beige bags.
|
||||
striped plum bags contain 4 dark silver bags, 5 bright brown bags.
|
||||
bright silver bags contain 1 muted purple bag.
|
||||
dim chartreuse bags contain 4 wavy plum bags, 5 muted maroon bags.
|
||||
faded orange bags contain 2 pale maroon bags, 4 pale gray bags, 4 pale yellow bags, 4 faded tomato bags.
|
||||
dotted black bags contain 1 vibrant aqua bag, 3 posh black bags, 2 dim lavender bags, 3 pale coral bags.
|
||||
vibrant gold bags contain 4 dull chartreuse bags, 3 muted green bags, 1 shiny turquoise bag.
|
||||
dull bronze bags contain 1 dim salmon bag, 4 striped crimson bags.
|
||||
clear blue bags contain 2 clear coral bags, 5 vibrant chartreuse bags.
|
||||
shiny tan bags contain 1 shiny gold bag.
|
||||
dotted brown bags contain 5 dotted red bags, 4 shiny gray bags, 3 vibrant gray bags.
|
||||
posh maroon bags contain 5 dull coral bags.
|
||||
drab tomato bags contain 4 dull silver bags.
|
||||
muted white bags contain 4 shiny olive bags, 1 dull tan bag.
|
||||
wavy teal bags contain 2 wavy plum bags, 5 posh chartreuse bags.
|
||||
shiny gray bags contain 5 dull salmon bags, 1 dull crimson bag.
|
||||
dim silver bags contain 2 pale maroon bags, 3 plaid olive bags.
|
||||
wavy magenta bags contain 4 vibrant silver bags.
|
||||
drab magenta bags contain 4 muted olive bags, 5 dark chartreuse bags, 4 mirrored tomato bags, 2 bright magenta bags.
|
||||
muted coral bags contain 3 pale beige bags.
|
||||
vibrant tomato bags contain 1 vibrant plum bag, 4 bright black bags, 2 bright crimson bags, 5 faded turquoise bags.
|
||||
vibrant white bags contain 5 plaid blue bags, 4 dull cyan bags, 1 dull fuchsia bag.
|
||||
bright brown bags contain 2 shiny tan bags.
|
||||
clear beige bags contain 3 light lime bags, 1 faded turquoise bag, 4 mirrored salmon bags.
|
||||
dull plum bags contain 4 drab yellow bags.
|
||||
light green bags contain 5 vibrant yellow bags, 1 drab green bag.
|
||||
wavy silver bags contain no other bags.
|
||||
vibrant coral bags contain 3 faded bronze bags.
|
||||
light plum bags contain 2 pale salmon bags, 5 dull teal bags, 1 dark plum bag.
|
||||
pale orange bags contain no other bags.
|
||||
dull gray bags contain 1 vibrant crimson bag.
|
||||
dull coral bags contain 4 shiny white bags, 3 wavy white bags, 1 pale green bag.
|
||||
muted bronze bags contain 3 drab yellow bags, 1 dotted teal bag, 1 clear gold bag.
|
||||
vibrant indigo bags contain 3 dim violet bags, 3 pale yellow bags, 1 pale indigo bag, 5 shiny gold bags.
|
||||
dark indigo bags contain 4 light beige bags.
|
||||
faded brown bags contain 2 dim fuchsia bags, 5 dull turquoise bags, 1 plaid salmon bag, 5 light brown bags.
|
||||
striped salmon bags contain 1 muted olive bag, 2 dull purple bags, 1 dim tomato bag.
|
||||
muted maroon bags contain 4 plaid tan bags, 5 light gray bags, 4 pale turquoise bags, 3 faded maroon bags.
|
||||
drab silver bags contain 1 bright chartreuse bag, 3 plaid coral bags.
|
||||
dim green bags contain 1 plaid olive bag, 1 dim tomato bag, 3 muted aqua bags, 2 light gold bags.
|
||||
light salmon bags contain 4 muted orange bags.
|
||||
bright teal bags contain 5 striped gold bags.
|
||||
dull teal bags contain no other bags.
|
||||
bright maroon bags contain 5 pale green bags, 3 pale brown bags, 2 posh purple bags, 3 light gold bags.
|
||||
pale lavender bags contain 5 dim beige bags, 5 shiny tan bags, 4 muted blue bags.
|
||||
light turquoise bags contain 5 mirrored olive bags, 4 striped maroon bags.
|
||||
shiny beige bags contain 5 dim bronze bags, 2 light gold bags, 4 drab beige bags.
|
||||
clear olive bags contain 1 mirrored olive bag, 2 muted orange bags, 3 faded salmon bags, 1 bright red bag.
|
||||
shiny magenta bags contain 3 wavy beige bags, 1 bright red bag.
|
||||
pale indigo bags contain 1 striped beige bag, 4 muted aqua bags, 3 muted olive bags, 1 dull teal bag.
|
||||
vibrant fuchsia bags contain 5 striped lavender bags, 2 dull orange bags, 4 striped beige bags, 1 posh silver bag.
|
||||
wavy plum bags contain 5 dull orange bags.
|
||||
striped bronze bags contain 4 bright lavender bags, 2 pale gray bags, 1 dull orange bag.
|
||||
shiny aqua bags contain 4 muted tan bags.
|
||||
drab cyan bags contain 4 clear plum bags.
|
||||
drab turquoise bags contain 3 dull tan bags.
|
||||
striped coral bags contain 3 striped brown bags, 5 bright yellow bags.
|
||||
wavy coral bags contain 4 dull teal bags, 3 vibrant fuchsia bags, 2 vibrant teal bags.
|
||||
drab chartreuse bags contain 3 drab blue bags, 5 vibrant fuchsia bags.
|
||||
plaid red bags contain 2 posh purple bags, 5 dull salmon bags, 4 vibrant fuchsia bags.
|
||||
striped turquoise bags contain 4 dotted beige bags, 4 vibrant crimson bags.
|
||||
dark aqua bags contain 4 dotted olive bags, 1 wavy orange bag, 5 dotted violet bags.
|
||||
posh violet bags contain 1 muted magenta bag, 5 mirrored magenta bags, 4 light chartreuse bags.
|
||||
drab coral bags contain 2 bright olive bags, 2 wavy tan bags, 1 dark aqua bag, 5 mirrored teal bags.
|
||||
bright purple bags contain 3 shiny teal bags, 4 faded tomato bags, 3 wavy plum bags, 1 wavy red bag.
|
||||
dotted maroon bags contain 5 mirrored teal bags, 5 dull gray bags, 3 vibrant yellow bags.
|
||||
dotted crimson bags contain 1 dim salmon bag, 4 clear gray bags, 4 wavy red bags.
|
||||
plaid white bags contain 5 pale salmon bags, 5 vibrant teal bags, 2 shiny coral bags.
|
||||
dotted lime bags contain 4 dark yellow bags, 1 dull lime bag.
|
||||
shiny red bags contain 1 bright brown bag, 2 plaid yellow bags.
|
||||
clear purple bags contain 4 mirrored olive bags, 5 light olive bags, 2 dark gold bags, 4 bright turquoise bags.
|
||||
mirrored maroon bags contain 4 muted aqua bags, 1 bright lavender bag, 2 bright cyan bags, 5 dull orange bags.
|
||||
bright lavender bags contain 3 pale brown bags, 1 striped gold bag, 4 pale chartreuse bags, 3 bright olive bags.
|
||||
drab maroon bags contain 1 pale orange bag.
|
||||
muted crimson bags contain 4 light gray bags, 2 muted white bags.
|
||||
dark beige bags contain 1 pale chartreuse bag, 5 pale gray bags, 4 shiny indigo bags.
|
||||
clear silver bags contain 5 mirrored gold bags, 2 muted brown bags.
|
||||
dim turquoise bags contain 5 faded orange bags, 4 dotted yellow bags.
|
||||
dotted beige bags contain 1 plaid teal bag.
|
||||
dotted fuchsia bags contain 5 posh tomato bags, 4 vibrant violet bags.
|
||||
faded white bags contain 1 wavy beige bag, 3 wavy white bags, 5 clear indigo bags.
|
||||
plaid salmon bags contain 4 light cyan bags, 5 drab lime bags, 5 muted green bags, 5 dim lavender bags.
|
||||
striped lavender bags contain 5 pale yellow bags, 1 dotted red bag, 1 plaid blue bag.
|
||||
muted olive bags contain 2 dark plum bags.
|
||||
drab indigo bags contain 3 vibrant chartreuse bags, 3 plaid teal bags, 1 dotted maroon bag, 5 dull lime bags.
|
||||
bright gray bags contain 4 faded indigo bags, 1 drab white bag, 3 muted blue bags.
|
||||
dotted silver bags contain 2 light green bags, 3 wavy coral bags, 1 bright chartreuse bag, 5 wavy violet bags.
|
||||
vibrant magenta bags contain 4 light indigo bags, 1 light lime bag, 3 shiny coral bags.
|
||||
pale yellow bags contain 5 muted aqua bags, 5 dark plum bags, 3 dark brown bags.
|
||||
drab fuchsia bags contain 5 faded cyan bags.
|
||||
plaid orange bags contain 2 dim silver bags.
|
||||
plaid lavender bags contain 1 pale maroon bag, 2 mirrored fuchsia bags, 4 striped yellow bags, 5 light lavender bags.
|
||||
pale violet bags contain 3 clear chartreuse bags, 4 posh black bags, 2 bright teal bags, 4 faded turquoise bags.
|
||||
light white bags contain 3 dotted indigo bags, 3 dull yellow bags, 3 plaid brown bags, 2 muted gold bags.
|
||||
wavy cyan bags contain 2 pale aqua bags, 4 dim cyan bags, 1 vibrant chartreuse bag.
|
||||
posh orange bags contain 1 pale beige bag, 2 dull coral bags, 4 pale chartreuse bags.
|
||||
clear plum bags contain 1 bright red bag, 2 dull tomato bags, 5 striped silver bags.
|
||||
drab tan bags contain 4 muted olive bags.
|
||||
striped tomato bags contain 3 posh orange bags.
|
||||
muted beige bags contain 5 mirrored violet bags, 1 dull orange bag.
|
||||
mirrored purple bags contain 4 muted olive bags, 5 dull lime bags.
|
||||
light teal bags contain 5 pale gray bags, 5 plaid lavender bags, 2 light plum bags.
|
||||
dim teal bags contain 2 striped beige bags, 5 pale aqua bags, 4 pale yellow bags.
|
||||
dotted chartreuse bags contain 3 vibrant lavender bags.
|
||||
dim tomato bags contain 3 bright cyan bags, 3 muted olive bags, 4 clear teal bags, 1 pale chartreuse bag.
|
||||
vibrant teal bags contain 2 bright red bags, 4 wavy chartreuse bags, 2 posh silver bags, 4 bright olive bags.
|
||||
mirrored plum bags contain 2 striped yellow bags, 2 striped lavender bags, 4 dark black bags.
|
||||
plaid gray bags contain 2 plaid teal bags.
|
||||
vibrant gray bags contain 1 dim brown bag.
|
||||
drab salmon bags contain 5 dotted red bags, 4 light gold bags, 3 mirrored maroon bags, 1 dotted plum bag.
|
||||
dull lime bags contain 3 shiny turquoise bags.
|
||||
clear green bags contain 4 plaid maroon bags, 1 dim crimson bag, 5 striped white bags.
|
||||
dotted red bags contain 1 dull teal bag.
|
||||
faded purple bags contain 3 shiny salmon bags, 3 clear tan bags, 3 bright magenta bags.
|
||||
dark magenta bags contain 1 dark tan bag.
|
||||
mirrored red bags contain 1 drab magenta bag, 3 wavy bronze bags, 5 shiny chartreuse bags.
|
||||
dim blue bags contain 2 light plum bags, 1 faded crimson bag.
|
||||
dark cyan bags contain 1 dull plum bag, 5 dim purple bags.
|
||||
drab lavender bags contain 3 dim purple bags, 2 dotted red bags.
|
||||
posh red bags contain 1 plaid lavender bag, 5 vibrant white bags, 1 bright magenta bag.
|
||||
pale cyan bags contain 2 striped yellow bags, 3 dotted red bags, 5 dull plum bags, 2 plaid blue bags.
|
||||
pale black bags contain 1 wavy beige bag, 1 clear magenta bag, 4 wavy red bags.
|
||||
dotted aqua bags contain 5 vibrant lavender bags, 3 muted brown bags.
|
||||
clear brown bags contain 5 posh brown bags.
|
||||
light coral bags contain 4 dull turquoise bags, 1 mirrored gold bag, 5 mirrored olive bags, 1 dull gray bag.
|
||||
dotted bronze bags contain 4 striped brown bags, 3 posh teal bags.
|
||||
faded aqua bags contain 1 dull yellow bag, 2 dark bronze bags.
|
||||
dim magenta bags contain 2 drab red bags, 3 clear tan bags, 1 faded lime bag.
|
||||
clear fuchsia bags contain 5 clear red bags, 3 plaid crimson bags, 4 bright magenta bags, 3 faded tan bags.
|
||||
faded blue bags contain 2 clear chartreuse bags, 1 vibrant crimson bag, 3 faded tomato bags.
|
||||
dark tomato bags contain 5 posh brown bags, 5 bright olive bags, 2 dull silver bags.
|
||||
bright orange bags contain 3 dotted teal bags, 5 posh orange bags, 5 wavy blue bags.
|
||||
dim cyan bags contain 5 dotted red bags, 2 wavy gold bags, 2 dull lime bags, 4 bright olive bags.
|
||||
pale olive bags contain 2 dull lime bags, 4 wavy white bags, 4 pale aqua bags.
|
||||
dim lavender bags contain 5 shiny green bags, 3 shiny cyan bags.
|
||||
vibrant brown bags contain 2 light magenta bags, 5 vibrant violet bags, 3 drab white bags.
|
||||
striped teal bags contain 3 clear salmon bags.
|
||||
pale salmon bags contain 5 dull purple bags, 1 dark gray bag, 2 dim violet bags, 4 shiny white bags.
|
||||
wavy olive bags contain 4 vibrant fuchsia bags, 2 shiny olive bags.
|
||||
drab aqua bags contain 2 shiny maroon bags, 1 pale orange bag, 5 wavy orange bags.
|
||||
mirrored bronze bags contain 3 dim blue bags, 4 drab chartreuse bags.
|
||||
clear orange bags contain 4 mirrored cyan bags, 1 striped red bag.
|
||||
shiny fuchsia bags contain 4 plaid teal bags, 3 vibrant coral bags, 5 shiny silver bags, 3 dotted red bags.
|
||||
vibrant black bags contain 5 light coral bags, 3 bright lavender bags, 1 dull violet bag.
|
||||
dim yellow bags contain 4 dark plum bags, 4 shiny coral bags.
|
||||
shiny lavender bags contain 3 dull tomato bags, 1 dark cyan bag, 4 light brown bags.
|
||||
dull maroon bags contain 3 light purple bags, 4 striped blue bags.
|
||||
pale beige bags contain 5 wavy chartreuse bags, 5 dull purple bags, 3 pale orange bags, 3 dotted teal bags.
|
||||
vibrant plum bags contain 3 dull turquoise bags, 3 shiny gold bags, 5 dark black bags.
|
||||
clear tomato bags contain 3 mirrored lime bags, 4 shiny red bags.
|
||||
drab crimson bags contain 1 clear silver bag, 3 wavy chartreuse bags, 3 pale bronze bags, 2 bright cyan bags.
|
||||
posh bronze bags contain 2 faded indigo bags, 1 clear red bag.
|
||||
drab purple bags contain 1 pale coral bag, 3 faded bronze bags, 2 striped yellow bags, 4 light orange bags.
|
||||
muted tomato bags contain 4 pale chartreuse bags.
|
||||
dim fuchsia bags contain 5 shiny white bags.
|
||||
dotted turquoise bags contain 3 drab plum bags, 3 pale olive bags, 4 posh silver bags.
|
||||
posh chartreuse bags contain 4 dotted indigo bags.
|
||||
dim olive bags contain 3 posh silver bags, 5 dotted beige bags, 5 light lime bags.
|
||||
wavy gold bags contain 5 muted aqua bags, 4 muted coral bags.
|
||||
striped purple bags contain 1 pale violet bag, 1 faded beige bag, 5 pale gray bags, 4 muted yellow bags.
|
||||
faded cyan bags contain 4 pale lime bags, 2 muted brown bags.
|
||||
shiny plum bags contain 1 muted purple bag.
|
||||
faded crimson bags contain 4 striped white bags.
|
||||
wavy green bags contain 5 dotted salmon bags, 3 dim fuchsia bags, 3 wavy aqua bags.
|
||||
mirrored magenta bags contain 3 drab black bags, 2 posh turquoise bags, 5 bright indigo bags.
|
||||
dull green bags contain 3 dull lime bags, 2 bright silver bags.
|
||||
pale turquoise bags contain 5 muted orange bags, 3 plaid bronze bags, 5 bright teal bags.
|
||||
striped blue bags contain 4 light lavender bags, 4 light orange bags, 4 muted coral bags, 5 wavy olive bags.
|
||||
plaid fuchsia bags contain 3 striped turquoise bags, 1 shiny bronze bag.
|
||||
posh plum bags contain 4 wavy silver bags, 4 vibrant crimson bags, 5 muted cyan bags.
|
||||
faded tomato bags contain 5 mirrored coral bags.
|
||||
vibrant cyan bags contain 4 muted green bags.
|
||||
vibrant lavender bags contain 1 dull tan bag.
|
||||
faded teal bags contain 4 dim red bags, 1 posh red bag.
|
||||
plaid turquoise bags contain 3 vibrant crimson bags, 4 striped yellow bags.
|
||||
posh gold bags contain 3 dull silver bags, 2 dark black bags, 3 faded lavender bags.
|
||||
light blue bags contain 4 shiny gold bags, 5 dotted beige bags, 1 dim brown bag, 2 shiny fuchsia bags.
|
||||
mirrored chartreuse bags contain 4 shiny tan bags, 2 dim purple bags, 2 pale cyan bags.
|
||||
light cyan bags contain 2 dotted olive bags, 2 dull crimson bags, 4 pale turquoise bags.
|
||||
wavy yellow bags contain 5 vibrant fuchsia bags, 3 drab fuchsia bags.
|
||||
drab teal bags contain 2 mirrored green bags.
|
||||
bright red bags contain 1 pale beige bag.
|
|
@ -1,99 +1,5 @@
|
|||
# [Day 8: Handheld Halting](https://adventofcode.com/2020/day/8)
|
||||
|
||||
<details><summary>Challenge description</summary>
|
||||
|
||||
*Description (c) [Eric Wastl](https://twitter.com/ericwastl)*
|
||||
|
||||
## Part One
|
||||
|
||||
Your flight to the major airline hub reaches cruising altitude without incident. While you consider checking the in-flight menu for one of those drinks that come with a little umbrella, you are interrupted by the kid sitting next to you.
|
||||
|
||||
Their [handheld game console](https://en.wikipedia.org/wiki/Handheld_game_console) won't turn on! They ask if you can take a look.
|
||||
|
||||
You narrow the problem down to a strange _infinite loop_ in the <span title="A trendy new line of encrypted footwear?">boot code</span> (your puzzle input) of the device. You should be able to fix it, but first you need to be able to run the code in isolation.
|
||||
|
||||
The boot code is represented as a text file with one _instruction_ per line of text. Each instruction consists of an _operation_ (`acc`, `jmp`, or `nop`) and an _argument_ (a signed number like `+4` or `-20`).
|
||||
|
||||
* `acc` increases or decreases a single global value called the _accumulator_ by the value given in the argument. For example, `acc +7` would increase the accumulator by 7\. The accumulator starts at `0`. After an `acc` instruction, the instruction immediately below it is executed next.
|
||||
* `jmp` _jumps_ to a new instruction relative to itself. The next instruction to execute is found using the argument as an _offset_ from the `jmp` instruction; for example, `jmp +2` would skip the next instruction, `jmp +1` would continue to the instruction immediately below it, and `jmp -20` would cause the instruction 20 lines above to be executed next.
|
||||
* `nop` stands for _No OPeration_ - it does nothing. The instruction immediately below it is executed next.
|
||||
|
||||
For example, consider the following program:
|
||||
|
||||
nop +0
|
||||
acc +1
|
||||
jmp +4
|
||||
acc +3
|
||||
jmp -3
|
||||
acc -99
|
||||
acc +1
|
||||
jmp -4
|
||||
acc +6
|
||||
|
||||
These instructions are visited in this order:
|
||||
|
||||
nop +0 | 1
|
||||
acc +1 | 2, 8(!)
|
||||
jmp +4 | 3
|
||||
acc +3 | 6
|
||||
jmp -3 | 7
|
||||
acc -99 |
|
||||
acc +1 | 4
|
||||
jmp -4 | 5
|
||||
acc +6 |
|
||||
|
||||
First, the `nop +0` does nothing. Then, the accumulator is increased from 0 to 1 (`acc +1`) and `jmp +4` sets the next instruction to the other `acc +1` near the bottom. After it increases the accumulator from 1 to 2, `jmp -4` executes, setting the next instruction to the only `acc +3`. It sets the accumulator to 5, and `jmp -3` causes the program to continue back at the first `acc +1`.
|
||||
|
||||
This is an _infinite loop_: with this sequence of jumps, the program will run forever. The moment the program tries to run any instruction a second time, you know it will never terminate.
|
||||
|
||||
Immediately _before_ the program would run an instruction a second time, the value in the accumulator is _`5`_.
|
||||
|
||||
Run your copy of the boot code. Immediately before any instruction is executed a second time, _what value is in the accumulator?_
|
||||
|
||||
Your puzzle answer was `1816`.
|
||||
|
||||
## Part Two
|
||||
|
||||
After some careful analysis, you believe that _exactly one instruction is corrupted_.
|
||||
|
||||
Somewhere in the program, _either_ a `jmp` is supposed to be a `nop`, _or_ a `nop` is supposed to be a `jmp`. (No `acc` instructions were harmed in the corruption of this boot code.)
|
||||
|
||||
The program is supposed to terminate by _attempting to execute an instruction immediately after the last instruction in the file_. By changing exactly one `jmp` or `nop`, you can repair the boot code and make it terminate correctly.
|
||||
|
||||
For example, consider the same program from above:
|
||||
|
||||
nop +0
|
||||
acc +1
|
||||
jmp +4
|
||||
acc +3
|
||||
jmp -3
|
||||
acc -99
|
||||
acc +1
|
||||
jmp -4
|
||||
acc +6
|
||||
|
||||
If you change the first instruction from `nop +0` to `jmp +0`, it would create a single-instruction infinite loop, never leaving that instruction. If you change almost any of the `jmp` instructions, the program will still eventually find another `jmp` instruction and loop forever.
|
||||
|
||||
However, if you change the second-to-last instruction (from `jmp -4` to `nop -4`), the program terminates! The instructions are visited in this order:
|
||||
|
||||
nop +0 | 1
|
||||
acc +1 | 2
|
||||
jmp +4 | 3
|
||||
acc +3 |
|
||||
jmp -3 |
|
||||
acc -99 |
|
||||
acc +1 | 4
|
||||
nop -4 | 5
|
||||
acc +6 | 6
|
||||
|
||||
After the last instruction (`acc +6`), the program terminates by attempting to run the instruction below the last instruction in the file. With this change, after the program terminates, the accumulator contains the value _`8`_ (`acc +1`, `acc +1`, `acc +6`).
|
||||
|
||||
Fix the program so that it terminates normally by changing exactly one `jmp` (to `nop`) or `nop` (to `jmp`). _What is the value of the accumulator after the program terminates?_
|
||||
|
||||
Your puzzle answer was `1149`.
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>Script output</summary>
|
||||
|
||||
```
|
||||
|
|
|
@ -1,626 +0,0 @@
|
|||
jmp +149
|
||||
acc -11
|
||||
nop +95
|
||||
acc -6
|
||||
jmp +196
|
||||
acc +2
|
||||
acc -6
|
||||
acc +38
|
||||
acc +18
|
||||
jmp +246
|
||||
acc +43
|
||||
acc +37
|
||||
acc -1
|
||||
jmp +390
|
||||
acc +32
|
||||
acc -15
|
||||
jmp +487
|
||||
jmp +382
|
||||
jmp +71
|
||||
jmp +331
|
||||
acc -3
|
||||
acc -12
|
||||
acc +4
|
||||
jmp +417
|
||||
acc +30
|
||||
acc +20
|
||||
jmp +410
|
||||
acc +22
|
||||
acc +25
|
||||
acc +19
|
||||
acc +5
|
||||
jmp +405
|
||||
acc +15
|
||||
acc +33
|
||||
acc +7
|
||||
acc -18
|
||||
jmp +463
|
||||
acc +25
|
||||
acc +8
|
||||
acc +1
|
||||
jmp +64
|
||||
jmp +1
|
||||
jmp +562
|
||||
jmp +4
|
||||
acc +21
|
||||
acc +12
|
||||
jmp +467
|
||||
nop +197
|
||||
acc +32
|
||||
jmp +7
|
||||
acc +2
|
||||
jmp +352
|
||||
acc +15
|
||||
jmp +289
|
||||
acc +39
|
||||
jmp +448
|
||||
jmp +227
|
||||
acc +17
|
||||
acc +4
|
||||
jmp +326
|
||||
acc -1
|
||||
nop +167
|
||||
acc +30
|
||||
nop +471
|
||||
jmp +101
|
||||
acc +45
|
||||
nop +276
|
||||
acc +12
|
||||
jmp +215
|
||||
nop +80
|
||||
acc +23
|
||||
acc +31
|
||||
jmp +104
|
||||
acc +39
|
||||
acc +15
|
||||
jmp +40
|
||||
nop +433
|
||||
acc +21
|
||||
acc +22
|
||||
acc +37
|
||||
jmp +421
|
||||
acc +14
|
||||
jmp -30
|
||||
acc +42
|
||||
acc +38
|
||||
jmp +203
|
||||
acc -8
|
||||
acc +27
|
||||
jmp +102
|
||||
acc -5
|
||||
acc +0
|
||||
acc +18
|
||||
acc +26
|
||||
jmp +212
|
||||
acc +25
|
||||
acc +18
|
||||
jmp +209
|
||||
acc +18
|
||||
acc +44
|
||||
acc +47
|
||||
nop -40
|
||||
jmp +372
|
||||
acc +29
|
||||
jmp +384
|
||||
acc +39
|
||||
acc -11
|
||||
acc +43
|
||||
jmp +406
|
||||
acc +2
|
||||
nop +439
|
||||
jmp +343
|
||||
acc +29
|
||||
acc +18
|
||||
jmp +457
|
||||
jmp -31
|
||||
jmp +146
|
||||
acc +12
|
||||
acc +26
|
||||
nop +98
|
||||
jmp +125
|
||||
acc +6
|
||||
acc +35
|
||||
acc +48
|
||||
acc +44
|
||||
jmp +497
|
||||
acc +17
|
||||
acc -8
|
||||
jmp +223
|
||||
acc +47
|
||||
jmp +405
|
||||
jmp +212
|
||||
jmp +317
|
||||
acc -13
|
||||
acc -6
|
||||
jmp +94
|
||||
acc +47
|
||||
acc +50
|
||||
acc -16
|
||||
acc +38
|
||||
jmp +290
|
||||
jmp +383
|
||||
nop -44
|
||||
acc +38
|
||||
nop +418
|
||||
acc +42
|
||||
jmp +233
|
||||
nop -94
|
||||
acc +46
|
||||
jmp +413
|
||||
acc +10
|
||||
acc -6
|
||||
jmp +410
|
||||
acc +30
|
||||
jmp -93
|
||||
acc -13
|
||||
jmp +6
|
||||
acc -16
|
||||
acc +18
|
||||
nop +403
|
||||
acc +0
|
||||
jmp +68
|
||||
acc +45
|
||||
jmp +302
|
||||
acc +5
|
||||
jmp +26
|
||||
acc -5
|
||||
acc +49
|
||||
jmp +412
|
||||
acc +3
|
||||
acc +14
|
||||
jmp +278
|
||||
acc +6
|
||||
acc +4
|
||||
jmp -58
|
||||
acc +14
|
||||
jmp -60
|
||||
acc -12
|
||||
acc +23
|
||||
jmp +225
|
||||
acc +9
|
||||
acc +17
|
||||
acc -10
|
||||
acc -13
|
||||
jmp +216
|
||||
acc -8
|
||||
nop +363
|
||||
jmp +84
|
||||
nop +300
|
||||
acc -15
|
||||
jmp +415
|
||||
acc +17
|
||||
acc -11
|
||||
nop +96
|
||||
jmp +377
|
||||
nop +259
|
||||
acc +4
|
||||
jmp +327
|
||||
acc +0
|
||||
jmp +149
|
||||
jmp +12
|
||||
acc +23
|
||||
acc +43
|
||||
acc +2
|
||||
jmp +1
|
||||
jmp +400
|
||||
acc +24
|
||||
jmp +114
|
||||
acc +3
|
||||
acc -13
|
||||
jmp +149
|
||||
jmp +100
|
||||
jmp +1
|
||||
jmp +157
|
||||
acc +23
|
||||
acc -15
|
||||
jmp -139
|
||||
nop -85
|
||||
jmp +201
|
||||
acc -2
|
||||
acc +39
|
||||
acc +30
|
||||
nop -93
|
||||
jmp -11
|
||||
acc +46
|
||||
jmp +285
|
||||
jmp +1
|
||||
acc +41
|
||||
jmp +115
|
||||
acc +48
|
||||
acc -12
|
||||
acc -17
|
||||
jmp -15
|
||||
nop +82
|
||||
acc +25
|
||||
jmp -151
|
||||
acc +20
|
||||
acc -14
|
||||
acc +9
|
||||
acc -9
|
||||
jmp +284
|
||||
acc +27
|
||||
acc +38
|
||||
acc +50
|
||||
jmp +145
|
||||
nop +279
|
||||
jmp -55
|
||||
nop +245
|
||||
jmp +254
|
||||
acc +4
|
||||
jmp +368
|
||||
nop -119
|
||||
acc -11
|
||||
acc +16
|
||||
acc +19
|
||||
jmp -54
|
||||
nop -186
|
||||
nop -187
|
||||
acc +9
|
||||
acc +44
|
||||
jmp -222
|
||||
jmp +253
|
||||
nop -234
|
||||
acc +33
|
||||
acc +35
|
||||
acc -17
|
||||
jmp +11
|
||||
acc +2
|
||||
acc +41
|
||||
acc +47
|
||||
jmp +310
|
||||
acc +0
|
||||
acc -8
|
||||
acc +1
|
||||
jmp +55
|
||||
acc -1
|
||||
jmp -257
|
||||
acc +7
|
||||
acc +44
|
||||
nop +253
|
||||
acc +41
|
||||
jmp +302
|
||||
acc +16
|
||||
jmp -185
|
||||
jmp +140
|
||||
jmp +1
|
||||
nop +3
|
||||
acc +35
|
||||
jmp -267
|
||||
acc +6
|
||||
jmp -269
|
||||
jmp +211
|
||||
acc +30
|
||||
acc +14
|
||||
acc +16
|
||||
acc +41
|
||||
jmp -47
|
||||
jmp -192
|
||||
nop -21
|
||||
acc -1
|
||||
jmp +192
|
||||
acc -6
|
||||
acc +15
|
||||
acc +3
|
||||
nop -247
|
||||
jmp -88
|
||||
jmp +164
|
||||
acc +47
|
||||
nop +43
|
||||
acc +40
|
||||
jmp +151
|
||||
jmp +85
|
||||
jmp +1
|
||||
acc +40
|
||||
jmp -257
|
||||
acc +13
|
||||
acc +13
|
||||
jmp -256
|
||||
acc +25
|
||||
acc +39
|
||||
jmp +260
|
||||
acc +13
|
||||
acc -18
|
||||
acc -19
|
||||
acc -14
|
||||
jmp -10
|
||||
acc -16
|
||||
acc +9
|
||||
jmp -199
|
||||
nop +185
|
||||
acc +38
|
||||
jmp -261
|
||||
nop +200
|
||||
acc -18
|
||||
nop +115
|
||||
acc +36
|
||||
jmp -259
|
||||
acc +47
|
||||
acc -2
|
||||
acc +9
|
||||
jmp -139
|
||||
nop -117
|
||||
jmp -13
|
||||
jmp +1
|
||||
jmp +247
|
||||
acc +19
|
||||
acc +49
|
||||
jmp +177
|
||||
acc -1
|
||||
jmp +249
|
||||
jmp -218
|
||||
acc +12
|
||||
acc +33
|
||||
jmp +108
|
||||
jmp -48
|
||||
nop -205
|
||||
acc +32
|
||||
jmp -159
|
||||
jmp -129
|
||||
acc +32
|
||||
jmp +1
|
||||
jmp +249
|
||||
nop +75
|
||||
acc +17
|
||||
acc -16
|
||||
jmp +253
|
||||
acc -9
|
||||
jmp -12
|
||||
acc +15
|
||||
jmp -14
|
||||
acc +13
|
||||
acc -8
|
||||
nop -13
|
||||
jmp +27
|
||||
nop -336
|
||||
acc +33
|
||||
acc +10
|
||||
acc -1
|
||||
jmp -350
|
||||
nop -134
|
||||
acc -11
|
||||
jmp +5
|
||||
acc +10
|
||||
acc +13
|
||||
acc +13
|
||||
jmp -249
|
||||
acc +8
|
||||
jmp -215
|
||||
jmp +49
|
||||
acc +35
|
||||
acc +28
|
||||
jmp -54
|
||||
acc +14
|
||||
nop -264
|
||||
jmp +1
|
||||
jmp -166
|
||||
jmp -291
|
||||
acc +9
|
||||
acc +43
|
||||
jmp -301
|
||||
nop +149
|
||||
acc -9
|
||||
jmp -81
|
||||
jmp -287
|
||||
acc +9
|
||||
acc +35
|
||||
acc -12
|
||||
jmp -295
|
||||
acc +46
|
||||
jmp -394
|
||||
acc +29
|
||||
acc +19
|
||||
acc +9
|
||||
jmp -58
|
||||
acc +7
|
||||
acc +32
|
||||
nop -261
|
||||
acc +44
|
||||
jmp -365
|
||||
jmp +1
|
||||
jmp +120
|
||||
acc +37
|
||||
nop -177
|
||||
jmp +101
|
||||
acc +42
|
||||
acc +13
|
||||
acc +36
|
||||
jmp -343
|
||||
acc +45
|
||||
jmp -408
|
||||
acc +23
|
||||
acc +0
|
||||
jmp -66
|
||||
jmp +1
|
||||
acc +34
|
||||
acc +19
|
||||
jmp +104
|
||||
jmp +1
|
||||
acc +36
|
||||
jmp -141
|
||||
jmp -44
|
||||
acc +9
|
||||
acc +30
|
||||
acc +18
|
||||
acc +0
|
||||
jmp -303
|
||||
jmp +1
|
||||
acc +12
|
||||
jmp +66
|
||||
acc +0
|
||||
jmp +82
|
||||
acc +43
|
||||
acc +18
|
||||
jmp +49
|
||||
acc -16
|
||||
acc -3
|
||||
acc +0
|
||||
jmp -249
|
||||
acc -2
|
||||
nop +81
|
||||
jmp +40
|
||||
jmp +94
|
||||
acc -16
|
||||
acc +1
|
||||
jmp -445
|
||||
jmp +1
|
||||
acc +22
|
||||
jmp -130
|
||||
acc +44
|
||||
jmp -73
|
||||
acc +3
|
||||
acc +5
|
||||
jmp -121
|
||||
jmp -352
|
||||
jmp -163
|
||||
acc +15
|
||||
acc +47
|
||||
nop +141
|
||||
jmp +140
|
||||
acc -18
|
||||
nop -289
|
||||
acc +16
|
||||
jmp -476
|
||||
acc -19
|
||||
nop +134
|
||||
acc -10
|
||||
acc +37
|
||||
jmp -13
|
||||
jmp -359
|
||||
acc +32
|
||||
acc +14
|
||||
jmp -306
|
||||
acc +25
|
||||
acc +30
|
||||
jmp -441
|
||||
acc +44
|
||||
acc +14
|
||||
acc +12
|
||||
acc +19
|
||||
jmp -387
|
||||
jmp -12
|
||||
jmp -180
|
||||
jmp -113
|
||||
jmp -29
|
||||
acc +34
|
||||
acc -13
|
||||
acc -12
|
||||
nop +73
|
||||
jmp -263
|
||||
jmp -373
|
||||
jmp -360
|
||||
acc +38
|
||||
nop -123
|
||||
jmp -176
|
||||
nop -155
|
||||
acc -11
|
||||
acc +32
|
||||
nop +54
|
||||
jmp -461
|
||||
acc +31
|
||||
acc +10
|
||||
acc -7
|
||||
acc -19
|
||||
jmp -212
|
||||
acc +41
|
||||
acc +4
|
||||
nop -2
|
||||
jmp -483
|
||||
acc +16
|
||||
acc +42
|
||||
acc -15
|
||||
jmp -286
|
||||
jmp -122
|
||||
acc -4
|
||||
jmp -436
|
||||
acc +27
|
||||
jmp -508
|
||||
acc +38
|
||||
nop -309
|
||||
jmp +10
|
||||
acc +31
|
||||
acc +18
|
||||
acc +5
|
||||
jmp -119
|
||||
acc +8
|
||||
acc -7
|
||||
acc -16
|
||||
acc +18
|
||||
jmp -416
|
||||
acc -15
|
||||
acc +1
|
||||
acc +30
|
||||
acc +8
|
||||
jmp -476
|
||||
jmp -298
|
||||
acc +29
|
||||
acc +24
|
||||
acc -9
|
||||
acc +35
|
||||
jmp -438
|
||||
nop -5
|
||||
jmp -100
|
||||
acc +5
|
||||
acc +3
|
||||
acc +5
|
||||
acc -4
|
||||
jmp +14
|
||||
acc +43
|
||||
acc +3
|
||||
acc +40
|
||||
jmp -517
|
||||
acc +10
|
||||
acc +35
|
||||
acc +38
|
||||
jmp -120
|
||||
acc +1
|
||||
acc -18
|
||||
acc +0
|
||||
acc +42
|
||||
jmp -69
|
||||
jmp -101
|
||||
acc +1
|
||||
jmp -271
|
||||
acc +37
|
||||
acc +17
|
||||
jmp +1
|
||||
jmp -401
|
||||
acc +1
|
||||
acc +3
|
||||
acc -8
|
||||
jmp -392
|
||||
nop -99
|
||||
acc +2
|
||||
jmp -301
|
||||
acc +10
|
||||
acc +32
|
||||
acc +3
|
||||
jmp -286
|
||||
jmp +1
|
||||
jmp -444
|
||||
nop -364
|
||||
acc +46
|
||||
acc +30
|
||||
acc -2
|
||||
jmp -13
|
||||
nop -65
|
||||
acc +22
|
||||
jmp -292
|
||||
acc -13
|
||||
jmp -480
|
||||
acc +4
|
||||
acc -8
|
||||
nop -500
|
||||
jmp -113
|
||||
acc -16
|
||||
acc +40
|
||||
acc -18
|
||||
jmp -125
|
||||
jmp -482
|
||||
acc +28
|
||||
acc -5
|
||||
jmp -471
|
||||
acc +33
|
||||
acc +49
|
||||
acc +21
|
||||
acc +9
|
||||
jmp +1
|
|
@ -1,19 +1,5 @@
|
|||
# [Day 1: Report Repair](https://adventofcode.com/2020/day/1)
|
||||
|
||||
<details><summary>Challenge description</summary>
|
||||
|
||||
*Description (c) [Eric Wastl](https://twitter.com/ericwastl)*
|
||||
|
||||
## Part One
|
||||
|
||||
...
|
||||
|
||||
## Part Two
|
||||
|
||||
...
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>Script output</summary>
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue