1
0
Fork 0

Solve day 11

This commit is contained in:
Lars Martens 2022-12-11 11:55:54 +01:00
parent 4f7ed8d228
commit 6ddb4c4c8f
Signed by: haselkern
GPG key ID: B5CF1F363C179AD4
3 changed files with 228 additions and 0 deletions

27
input/11-test Normal file
View file

@ -0,0 +1,27 @@
Monkey 0:
Starting items: 79, 98
Operation: new = old * 19
Test: divisible by 23
If true: throw to monkey 2
If false: throw to monkey 3
Monkey 1:
Starting items: 54, 65, 75, 74
Operation: new = old + 6
Test: divisible by 19
If true: throw to monkey 2
If false: throw to monkey 0
Monkey 2:
Starting items: 79, 60, 97
Operation: new = old * old
Test: divisible by 13
If true: throw to monkey 1
If false: throw to monkey 3
Monkey 3:
Starting items: 74
Operation: new = old + 3
Test: divisible by 17
If true: throw to monkey 0
If false: throw to monkey 1