12 lines
243 B
Python
12 lines
243 B
Python
from common import parse, split_and_sort
|
|
|
|
|
|
def main() -> None:
|
|
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()
|