advent-of-code/2019/1/day1.awk
2019-12-01 06:47:41 +01:00

9 lines
70 B
Awk

#!/usr/bin/awk -f
{
s += int($1 / 3) - 2;
}
END {
print s;
}