From 04197d46e899873af5478b4d5ccaf1579fe0b6f8 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 5 Dec 2022 17:34:48 +0100 Subject: Add 2016 day 3 solutions --- 2016/03/puzzle-1.awk | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 2016/03/puzzle-1.awk (limited to '2016/03/puzzle-1.awk') diff --git a/2016/03/puzzle-1.awk b/2016/03/puzzle-1.awk new file mode 100755 index 0000000..809f12c --- /dev/null +++ b/2016/03/puzzle-1.awk @@ -0,0 +1,4 @@ +#!/usr/bin/awk -f + +($1 + $2 > $3) && ($2 + $3 > $1) && ($3 + $1 > $2) { c++ } +END { print c } -- cgit v1.2.3