Added template (see 2022) + Day 2 completed

This commit is contained in:
2024-12-02 07:54:03 +01:00
parent 9d61d24b64
commit f37e249160
8 changed files with 77 additions and 1 deletions

14
day2/part1.py Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env python
from common import ReportList, is_safe, parse
def solve(input: ReportList) -> int:
return len(list(filter(is_safe, input)))
def main():
print(solve(parse("input")))
if __name__ == "__main__":
main()