adventofcode/day2/day2.pl
Yanick Champoux bc5be98a8d day2
2017-12-03 12:06:46 -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 } <>;