summaryrefslogtreecommitdiffstats
path: root/inf/aoc/1.c
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-12-01 18:04:20 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2022-12-01 18:04:20 +0100
commit894f4483b18be1f084d0bb1c095034da5d8d32e2 (patch)
tree1d8a11a41e356d4aa87498b005e89a9a91054dbc /inf/aoc/1.c
parentaoc (diff)
downloadsola-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.c11
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) {