diff --git a/2018/08/sol1.pl b/2018/08/sol1.pl new file mode 100644 index 0000000..ff67a2e --- /dev/null +++ b/2018/08/sol1.pl @@ -0,0 +1,18 @@ +use 5.20.0; +use warnings; +use experimental qw/ + signatures + postderef +/; + +my @input = split / /, <>; + +parse_metadata(@input); + +sub parse_metadata($nbr_children, $nbr_metadata, @payload) { + my @meta; + push @meta, pop @payload for 1..$nbr_metadata; + + + +} diff --git a/2018/08/test.txt b/2018/08/test.txt new file mode 100644 index 0000000..4279f52 --- /dev/null +++ b/2018/08/test.txt @@ -0,0 +1 @@ +2 3 0 3 10 11 12 1 1 0 1 99 2 1 1 2