Day 04 (minified)

This commit is contained in:
Sebastian Seedorf
2022-12-05 10:42:53 +01:00
parent b4fe10e101
commit c3050cb4fe
4 changed files with 9 additions and 2 deletions

View File

@@ -7,4 +7,4 @@ for line in lines:
a, b, x, y = map(int, line.replace(',', '-').split('-'))
s += 1 if x <= a <= y or x <= b <= y or a <= x <= b or a <= y <= b else 0
print(s)
print(s)