From ac71df84182b9ed15f633c12d4cbaaad071a810b Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 1 Dec 2021 13:24:24 -0500 Subject: Solve day 1 part 1 --- 2021/day01.pl | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 2021/day01.pl diff --git a/2021/day01.pl b/2021/day01.pl new file mode 100644 index 0000000..f4ab273 --- /dev/null +++ b/2021/day01.pl @@ -0,0 +1,6 @@ +my $last, $incs; +while (<>) { + $incs++ if ($last && $_ > $last); + $last = $_; +} +print "$incs\n"; -- cgit 1.4.1 value='9429b55ef96cf7908dc3460e4db5cc1b1a2c84dc'/> dontfiles
summary refs log tree commit diff
path: root/bin/man1/pbd.1 (unfollow)
Commit message (Expand)Author
2022-06-08Add Maiden, Mother, CroneJune McEnroe
2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe
2022-06-03Set line number on File linesJune McEnroe
2022-06-03Stop polling stdin after EOFJune McEnroe
2022-06-02Set TABSIZE=4June McEnroe
2022-06-02Do basic match highlightingJune McEnroe
2022-06-02Clean up parsing a littleJune McEnroe
2022-06-02Don't duplicate path stringJune McEnroe
2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe
2022-06-02Add initial working version of qfJune McEnroe
2022-05-29Set prompt for okshJune McEnroe