https://adventofcode.com/2023ar dalyvausit šiais metais virai ? dalinames sprendimais ~~
1 diena :
import re
sum = 0
i = 1
spellednumbers = [['zero', '0'], ['one', '1'], ['two', '2'], ['three', '3'], ['four', '4'], ['five', '5'], ['six', '6'], ['seven','7'], ['eight', '8'], ['nine', '9']]
numberRegex = r'\d|one|two|three|four|five|six|seven|eight|nine'
with open('input.txt') as inputFile:
f = open("output1.txt", "w")
for line in inputFile:
Įrašas per ilgas. Norėdamas pamatyti visą tekstą, spausk čia.