From fe1725fadf31073b0b46d5a50ac5ec19e0cf5a48 Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Wed, 1 Dec 2021 18:46:57 +0100 Subject: [PATCH] add copyright notice and usage hint --- day01/part1.nim | 17 +++++++++++++++++ day01/part2.nim | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/day01/part1.nim b/day01/part1.nim index 6829881..7274b20 100644 --- a/day01/part1.nim +++ b/day01/part1.nim @@ -1,3 +1,20 @@ +# Copyright 2021 Christian Ulrich +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# usage: ./part1 < input + import strutils proc countIncreases(): uint = diff --git a/day01/part2.nim b/day01/part2.nim index 2727faa..05189d0 100644 --- a/day01/part2.nim +++ b/day01/part2.nim @@ -1,3 +1,20 @@ +# Copyright 2021 Christian Ulrich +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# usage: ./part2 < input + import algorithm import math import strutils