From 894f4483b18be1f084d0bb1c095034da5d8d32e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Thu, 1 Dec 2022 18:04:20 +0100 Subject: aoc1fix --- inf/aoc/1.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/inf/aoc/1.c b/inf/aoc/1.c index 2bb65b9..4f01354 100644 --- a/inf/aoc/1.c +++ b/inf/aoc/1.c @@ -6,18 +6,7 @@ int main (void) { unsigned n = 0; unsigned o = 0; unsigned s = 0; - unsigned t; while (!ferror(stdin) && !feof(stdin)) { - if (m < o) { - t = o; - o = m; - m = t; - } - if (n < o) { - t = o; - o = n; - n = t; - } fgets(b, 64, stdin); if (b[0] == '\n') { if (s > m) { -- cgit v1.2.3