From a193b6923c31f0c7b700ad3c754699aacc4e6574 Mon Sep 17 00:00:00 2001 From: Jakub Chrzanowski Date: Tue, 19 Nov 2024 16:15:06 +0100 Subject: [PATCH] Add `Advent of Code` file template --- .idea/fileTemplates/Advent of Code.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .idea/fileTemplates/Advent of Code.kt diff --git a/.idea/fileTemplates/Advent of Code.kt b/.idea/fileTemplates/Advent of Code.kt new file mode 100644 index 0000000..a5489be --- /dev/null +++ b/.idea/fileTemplates/Advent of Code.kt @@ -0,0 +1,15 @@ +fun main() { + fun part1(input: List): Int { + return input.size + } + + fun part2(input: List): Int { + return input.size + } + + check(part1(listOf("...")) == 1) + + val input = readInput("Day$Day") + part1(input).println() + part2(input).println() +}