mirror of https://github.com/HeNine/aoc2020
day7
parent
d439a6b171
commit
7c3cdbde34
@ -0,0 +1,9 @@
|
|||||||
|
[package]
|
||||||
|
name = "day7"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = ["henine <matija@rezar.biz>"]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
@ -0,0 +1,594 @@
|
|||||||
|
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.
|
@ -0,0 +1,81 @@
|
|||||||
|
use std::borrow::ToOwned;
|
||||||
|
use std::collections::{HashMap, HashSet};
|
||||||
|
use std::fs::File;
|
||||||
|
use std::io::{BufRead, BufReader};
|
||||||
|
use std::iter::FromIterator;
|
||||||
|
use std::result::Result::{Err, Ok};
|
||||||
|
use std::string::{String, ToString};
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let file = match File::open("input") {
|
||||||
|
Ok(file) => file,
|
||||||
|
Err(e) => panic!(e)
|
||||||
|
};
|
||||||
|
|
||||||
|
let input_buffer = BufReader::new(&file);
|
||||||
|
|
||||||
|
let edges: Vec<(String, (u32, String))> = input_buffer.lines().map(
|
||||||
|
|rline| {
|
||||||
|
parse_edge_set(rline.unwrap())
|
||||||
|
}
|
||||||
|
).flatten().collect();
|
||||||
|
|
||||||
|
let reverse_graph: Vec<(String, (u32, String))> = Vec::from_iter(edges.iter().map(
|
||||||
|
|(parent, (count, child))| (child.clone(), (count.clone(), parent.clone()))
|
||||||
|
));
|
||||||
|
let forward_graph: Vec<(String, (u32, String))> = Vec::from_iter(edges);
|
||||||
|
|
||||||
|
let dn = downstream_nodes("shiny gold".to_string(),
|
||||||
|
&reverse_graph,
|
||||||
|
HashSet::new());
|
||||||
|
|
||||||
|
println!("Parents: {}", dn.len());
|
||||||
|
println!("All bags: {}", upstream_nodes("shiny gold".to_string(), &forward_graph));
|
||||||
|
}
|
||||||
|
|
||||||
|
fn parse_edge_set(line: String) -> Vec<(String, (u32, String))> {
|
||||||
|
let splot: Vec<&str> = line[0..line.len() - 1].split("contain ").collect();
|
||||||
|
|
||||||
|
let parent = splot[0][0..splot[0].len() - 5 - 1].to_string();
|
||||||
|
println!("{}", parent);
|
||||||
|
|
||||||
|
let children: Vec<(u32, String)> = parse_children(splot[1].to_string());
|
||||||
|
|
||||||
|
children.iter().map(|child| (parent.clone(), child.to_owned())).collect()
|
||||||
|
}
|
||||||
|
|
||||||
|
fn parse_children(children: String) -> Vec<(u32, String)> {
|
||||||
|
children.split(", ")
|
||||||
|
.filter_map(parse_child)
|
||||||
|
.collect()
|
||||||
|
}
|
||||||
|
|
||||||
|
fn parse_child(child: &str) -> Option<(u32, String)> {
|
||||||
|
let splot: Vec<&str> = child.split(" ").collect();
|
||||||
|
match splot[0].parse() {
|
||||||
|
Ok(count) => Some((count, splot[1].to_string() + " " + splot[2])),
|
||||||
|
Err(_e) => None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn downstream_nodes(node: String,
|
||||||
|
rv_graph: &Vec<(String, (u32, String))>,
|
||||||
|
mut nodes: HashSet<String>) -> HashSet<String> {
|
||||||
|
for (_child, (_count, parent)) in rv_graph.iter().filter(|(c, _p)| *c == node) {
|
||||||
|
nodes.insert(parent.clone());
|
||||||
|
println!("{}", parent);
|
||||||
|
nodes = downstream_nodes(parent.clone(), rv_graph, nodes)
|
||||||
|
}
|
||||||
|
|
||||||
|
nodes
|
||||||
|
}
|
||||||
|
|
||||||
|
fn upstream_nodes(node: String,
|
||||||
|
fw_graph: &Vec<(String, (u32, String))>) -> u32 {
|
||||||
|
let mut count = 0;
|
||||||
|
for (_parent, (bag_count, child)) in fw_graph.iter().filter(|(p, _c)| *p == node) {
|
||||||
|
count += bag_count * (1 + upstream_nodes(child.clone(), fw_graph))
|
||||||
|
}
|
||||||
|
|
||||||
|
count
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
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.
|
@ -0,0 +1,7 @@
|
|||||||
|
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.
|
Loading…
Reference in New Issue