summaryrefslogtreecommitdiff
path: root/2018/aoc18-d01-2.py
diff options
context:
space:
mode:
authorihaveslowbrain <gitserver@ihaveslowbrain.com>2023-10-20 21:32:41 +0000
committerihaveslowbrain <gitserver@ihaveslowbrain.com>2023-10-20 21:32:41 +0000
commitd7fef5244c43526e4f1102f816130f55cf20e8a7 (patch)
treef8668a90bcb9abb34f94ced31900151348f39998 /2018/aoc18-d01-2.py
parent61073dcec8e896b84fafbd6110e2da55a0dd2d5e (diff)
renamed few files
Diffstat (limited to '2018/aoc18-d01-2.py')
-rw-r--r--2018/aoc18-d01-2.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/2018/aoc18-d01-2.py b/2018/aoc18-d01-2.py
deleted file mode 100644
index ee8bab2..0000000
--- a/2018/aoc18-d01-2.py
+++ /dev/null
@@ -1,32 +0,0 @@
-print();
-f = open("input");
-
-part1 = 0;
-results = [];
-not_found = True;
-loopcount = 0;
-myinput = [];
-
-for i in f:
- myinput.append(int(i));
-
-while not_found:
- for i in myinput:
- #print(i, "endofline");
- part1 += i;
- results.append(part1);
- #for x in results:
- if (results.count(part1) > 1):
- part2 = part1;
- print(part2);
- not_found = False;
- break;
- loopcount += 1;
- #print("loop", loopcount);
-
-#results.sort();
-#for i in results:
-# print(i);
-
-print(part1);
-print(part2);