From: CptG9000 <71446401+CptG9000@users.noreply.github.com> Date: Thu, 2 Dec 2021 17:34:07 +0000 (+0000) Subject: Delete 1.py X-Git-Url: https://fbox.kageds.com/gitweb/adventofcode.git/commitdiff_plain/9014196200a62aced5d699c99677688b2030f02a?hp=-c Delete 1.py --- 9014196200a62aced5d699c99677688b2030f02a diff --git a/day1/1.py b/day1/1.py deleted file mode 100644 index 41a5f04..0000000 --- a/day1/1.py +++ /dev/null @@ -1,24 +0,0 @@ -numbers = [] -rolling = [] -while True: - a = input("") - if a == "a": - break - numbers.append(a) -print("Numbers are Inputed") -z = 0 -while True: - if z == len(numbers)-2: - break - a = int(numbers[z])+int(numbers[z+1])+int(numbers[z+2]) - rolling.append(a) - z = z + 1 -inc = 0 -x = 0 -while True: - if x == len(rolling)+1: - break - if int(rolling[x]) > int(rolling[x-1]): - inc = inc + 1 - x = x + 1 -print(inc) \ No newline at end of file