diff options
Diffstat (limited to '')
-rw-r--r-- | inf/aoc/1.c | 11 |
1 files changed, 0 insertions, 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) { |