Update Day 07
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user