adventofcode/2023/06/Part2.pm

18 lines
234 B
Perl
Raw Permalink Normal View History

2023-12-06 15:31:39 +00:00
use 5.38.0;
package Part2;
use Part1;
2023-12-06 16:07:57 +00:00
use List::AllUtils qw/ product /;
2023-12-06 15:31:39 +00:00
2023-12-06 16:07:57 +00:00
sub parse_file($input) {
map { join '', /(\d+)/g } split "\n", $input;
}
2023-12-06 15:31:39 +00:00
sub solution_2 ($input) {
2023-12-06 16:07:57 +00:00
Part1::race_solution(parse_file($input));
2023-12-06 15:31:39 +00:00
}
1;