adventofcode/2017/day2/day2.pl
2017-12-28 12:14:51 -05:00

8 lines
129 B
Perl
Executable File

#!/usr/bin/perl
use 5.20.0;
use List::AllUtils qw/ minmax sum pairmap /;
say sum pairmap { -$a, $b } map { minmax split } <>;