Files
advent-of-code-2023/concepts/day04.md
2023-12-06 16:31:33 +00:00

461 B

cards won in the sample:

  • total: 30
  • 1=>1
  • 2=>2
  • 3=>4
  • 4=>8
  • 5=>14
  • 6=>1

win amout:

  • total: 4 + 2 + 2 + 1 + 0 + 0
  • 1=>4
  • 2=>2
  • 3=>2
  • 4=>1
  • 5=>0
  • 6=>0

expected output:


  • 1
    • 2
      • 3
        • 4
          • 5
        • 5
      • 4
        • 5
    • 3
      • 4
        • 5
      • 5
    • 4
      • 5
    • 5
  • 2
    • 3
      • 4
        • 5
      • 5
    • 4
      • 5
  • 3
    • 4
      • 5
    • 5
  • 4
    • 5
  • 5
  • 6