Code formatté avec ruff, et ajout de mon settings.json habituel

This commit is contained in:
2024-12-01 14:43:11 +01:00
parent e5bd9fe457
commit 43a9cef15a
4 changed files with 23 additions and 12 deletions

View File

@@ -2,9 +2,9 @@ from common import parse, split
def main():
l1, l2 = split(parse('input'))
l1, l2 = split(parse("input"))
print(sum(map(lambda x: x * len(list(filter(lambda y: y == x, l2))), l1)))
if __name__ == '__main__':
main()
if __name__ == "__main__":
main()