]> www.fi.muni.cz Git - aoc.git/blob - 2021/01.pl
Moved 2021 to a subdir
[aoc.git] / 2021 / 01.pl
1 #!/usr/bin/perl -w
2
3 use strict;
4
5 my $prev;
6 my $inc;
7 while (<>) {
8         chomp;
9         $inc++ if $prev && $_ > $prev;
10         $prev = $_;
11 }
12
13 print $inc, "\n";
14