Code formatté avec ruff, et ajout de mon settings.json habituel
This commit is contained in:
@@ -2,11 +2,10 @@ from common import parse, split_and_sort
|
||||
|
||||
|
||||
def main() -> None:
|
||||
l1, l2 = split_and_sort(parse('input'))
|
||||
assert ( len(l1) == len(l2))
|
||||
l1, l2 = split_and_sort(parse("input"))
|
||||
assert len(l1) == len(l2)
|
||||
print(sum(map(lambda i: abs(l1[i] - l2[i]), range(len(l1)))))
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user