From aec1c07260257ba7c28eff53f422ddb7daaf316a Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 31 Jul 2022 11:46:17 +0300 Subject: Big Bang --- Advent-of-Code-2020/AOC-1/aoc-1 | Bin 0 -> 16696 bytes Advent-of-Code-2020/AOC-1/aoc-1.c | 81 ++++++++++++++ Advent-of-Code-2020/AOC-1/input.txt | 200 +++++++++++++++++++++++++++++++++++ Advent-of-Code-2020/AOC-1/sample.txt | 6 ++ 4 files changed, 287 insertions(+) create mode 100755 Advent-of-Code-2020/AOC-1/aoc-1 create mode 100644 Advent-of-Code-2020/AOC-1/aoc-1.c create mode 100644 Advent-of-Code-2020/AOC-1/input.txt create mode 100644 Advent-of-Code-2020/AOC-1/sample.txt (limited to 'Advent-of-Code-2020/AOC-1') diff --git a/Advent-of-Code-2020/AOC-1/aoc-1 b/Advent-of-Code-2020/AOC-1/aoc-1 new file mode 100755 index 0000000..cc27da9 Binary files /dev/null and b/Advent-of-Code-2020/AOC-1/aoc-1 differ diff --git a/Advent-of-Code-2020/AOC-1/aoc-1.c b/Advent-of-Code-2020/AOC-1/aoc-1.c new file mode 100644 index 0000000..070642f --- /dev/null +++ b/Advent-of-Code-2020/AOC-1/aoc-1.c @@ -0,0 +1,81 @@ +#include +#include +#include +#include + +#if 0 + #define PFILE "sample.txt" + #define A_CAP 6 +#else + #define PFILE "input.txt" + #define A_CAP 200 +#endif + +int ints[A_CAP]; + +void PrintInts() +{ + for(int i=0; i