Update Day 07

This commit is contained in:
2024-12-07 14:31:42 +01:00
parent 63765cedbe
commit b8b74c8fac
10 changed files with 972 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
# Python Code
# Developer : David Bandeira
import sys,time
import sys,time,re
from helpingFunctions import *
setSampleMode(False)
@@ -16,6 +16,9 @@ filename = getFilename2Data(aocDay)
def taskA (data) -> int:
gameScoreA = 0
dataValue = re.findall(r'-[0-9]*||[0-9]*',data[0])
for lineValue in dataValue:
gameScoreA = gameScoreA+ int(lineValue)
return gameScoreA
def taskB (data) -> int: