aoc2021/d01/d01_1.awk

5 lines
67 B
Awk
Raw Permalink Normal View History

2021-12-02 08:46:21 +00:00
NR == 1 { A = $1; next }
$1 > A { N++ }
{ A = $1 }
END { print N }