From 48966f12832ac97228132e56fb3159099f3e466e Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 31 Jul 2022 11:55:45 +0300 Subject: cleanup --- Advent-of-Code-2021/AOC-6/main.c | 78 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Advent-of-Code-2021/AOC-6/main.c (limited to 'Advent-of-Code-2021/AOC-6/main.c') diff --git a/Advent-of-Code-2021/AOC-6/main.c b/Advent-of-Code-2021/AOC-6/main.c new file mode 100644 index 0000000..42cd75b --- /dev/null +++ b/Advent-of-Code-2021/AOC-6/main.c @@ -0,0 +1,78 @@ +#include +#include +#include +#include +#include + +#define N 9 +#define MAXDAYS 256 + +u_int64_t table[N]; +u_int64_t temp_table[N]; + +void PrintTable() +{ + for(int i=0; i