initial commit

This commit is contained in:
s-prechtl 2022-12-09 08:29:06 +01:00
commit 27fe77bbe1
134 changed files with 21939 additions and 0 deletions

25
2020/Day6/main.py Normal file
View file

@ -0,0 +1,25 @@
if __name__ == '__main__':
with open("input.txt") as f:
raw = f.read().split("\n\n")
groups = []
for i in raw:
groups.append(i.split("\n"))
counter = 0
people = 0
answer = 0
for group in groups:
curransw = []
people = 0
for answergroup in group:
people += 1
for answer in answergroup:
curransw.append(answer)
if curransw.count(answer) == people:
counter += 1
print(counter)