diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-12-01 18:04:20 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-12-01 18:04:20 +0100 |
commit | 894f4483b18be1f084d0bb1c095034da5d8d32e2 (patch) | |
tree | 1d8a11a41e356d4aa87498b005e89a9a91054dbc | |
parent | aoc (diff) | |
download | sola-gimb-4-894f4483b18be1f084d0bb1c095034da5d8d32e2.tar sola-gimb-4-894f4483b18be1f084d0bb1c095034da5d8d32e2.tar.gz sola-gimb-4-894f4483b18be1f084d0bb1c095034da5d8d32e2.tar.bz2 sola-gimb-4-894f4483b18be1f084d0bb1c095034da5d8d32e2.tar.lz sola-gimb-4-894f4483b18be1f084d0bb1c095034da5d8d32e2.tar.xz sola-gimb-4-894f4483b18be1f084d0bb1c095034da5d8d32e2.tar.zst sola-gimb-4-894f4483b18be1f084d0bb1c095034da5d8d32e2.zip |
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) { |