Skip to content

Commit 226f827

Browse files
committed
Added day 17 part 1
1 parent ebe7a83 commit 226f827

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44

55
// project meta data
66
group 'de.havox_design.aoc2015'
7-
version '0.16.0'
7+
version '0.16.1'
88

99
// Switch to gradle "all" distribution.
1010
wrapper {

day17/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Day 17: No Such Thing as Too Much
2+
The elves bought too much eggnog again - `150` liters this time. To fit it all into your refrigerator, you'll need to
3+
move it into smaller containers. You take an inventory of the capacities of the available containers.
4+
5+
For example, suppose you have containers of size `20`, `15`, `10`, `5`, and `5` liters. If you need to store `25`
6+
liters, there are four ways to do it:
7+
* `15` and `10`
8+
* `20` and `5` (the first `5`)
9+
* `20` and `5` (the second `5`)
10+
* `15`, `5`, and `5`
11+
12+
Filling all containers entirely, how many different **combinations of containers** can exactly fit all `150` liters of
13+
eggnog?

day17/src/main/resources/day17.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
33
2+
14
3+
18
4+
20
5+
45
6+
35
7+
16
8+
35
9+
1
10+
13
11+
18
12+
13
13+
50
14+
44
15+
48
16+
6
17+
24
18+
41
19+
30
20+
42

0 commit comments

Comments
 (0)