day8
This commit is contained in:
parent
ea0c2831e8
commit
dd409d663f
18
2018/08/sol1.pl
Normal file
18
2018/08/sol1.pl
Normal file
@ -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;
|
||||
|
||||
|
||||
|
||||
}
|
1
2018/08/test.txt
Normal file
1
2018/08/test.txt
Normal file
@ -0,0 +1 @@
|
||||
2 3 0 3 10 11 12 1 1 0 1 99 2 1 1 2
|
Loading…
Reference in New Issue
Block a user