Compare commits

..

3 commits

Author SHA1 Message Date
Bruno BELANYI 6f0ffd34db 2022: d01: ex2: add solution 2022-12-01 11:49:28 +01:00
Bruno BELANYI a064fe7199 2022: d01: ex2: add input 2022-12-01 11:49:28 +01:00
Bruno BELANYI 24610576bb 2022: d01: ex1: add solution 2022-12-01 11:49:28 +01:00
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ def solve(input: list[list[int]]) -> int:
def main() -> None: def main() -> None:
input = [ input = [
[int(line) for line in group.split("\n") if line] [int(line) for line in group.splitlines()]
for group in sys.stdin.read().split("\n\n") for group in sys.stdin.read().split("\n\n")
if group if group
] ]

View file

@ -10,7 +10,7 @@ def solve(input: list[list[int]]) -> int:
def main() -> None: def main() -> None:
input = [ input = [
[int(line) for line in group.split("\n") if line] [int(line) for line in group.splitlines()]
for group in sys.stdin.read().split("\n\n") for group in sys.stdin.read().split("\n\n")
if group if group
] ]