day9_part2.carbon 428 B

12345678910111213141516
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. // https://adventofcode.com/2024/day/9
  5. import Core library "io";
  6. import library "day9_common";
  7. import library "io_utils";
  8. fn Run() {
  9. var list: SectorList = SectorList.Read();
  10. list.DefragFiles();
  11. PrintInt64(list.Checksum());
  12. }