From 14f6ed8f8c3d6c0138019511be50e41e0a5d8b22 Mon Sep 17 00:00:00 2001 From: Kees van Kempen Date: Wed, 3 Dec 2025 07:59:39 +0100 Subject: [PATCH] 2025(03): pull part 1 of day 3 --- 2025/03/README.md | 36 +++++++++++++++++++++++++++++++ 2025/03/README.md:Zone.Identifier | 3 +++ 2 files changed, 39 insertions(+) create mode 100644 2025/03/README.md create mode 100644 2025/03/README.md:Zone.Identifier diff --git a/2025/03/README.md b/2025/03/README.md new file mode 100644 index 0000000..9de75ee --- /dev/null +++ b/2025/03/README.md @@ -0,0 +1,36 @@ +# Day 3: Lobby + +[https://adventofcode.com/2025/day/3](https://adventofcode.com/2025/day/3) + +## Description + +### Part One + +You descend a short staircase, enter the surprisingly vast lobby, and are quickly cleared by the security checkpoint. When you get to the main elevators, however, you discover that each one has a red light above it: they're all _offline_. + +"Sorry about that," an Elf apologizes as she tinkers with a nearby control panel. "Some kind of electrical surge seems to have fried them. I'll try to get them online soon." + +You explain your need to get further underground. "Well, you could at least take the escalator down to the printing department, not that you'd get much further than that without the elevators working. That is, you could if the escalator weren't also offline." + +"But, don't worry! It's not fried; it just needs power. Maybe you can get it running while I keep working on the elevators." + +There are batteries nearby that can supply emergency power to the escalator for just such an occasion. The batteries are each labeled with their [joltage](https://adventofcode.com/2020/day/10) rating, a value from `1` to `9`. You make a note of their joltage ratings (your puzzle input). For example: + + 987654321111111 + 811111111111119 + 234234234234278 + 818181911112111 + + +The batteries are arranged into _banks_; each line of digits in your input corresponds to a single bank of batteries. Within each bank, you need to turn on _exactly two_ batteries; the joltage that the bank produces is equal to the number formed by the digits on the batteries you've turned on. For example, if you have a bank like `12345` and you turn on batteries `2` and `4`, the bank would produce `24` jolts. (You cannot rearrange batteries.) + +You'll need to find the largest possible joltage each bank can produce. In the above example: + +* In `987654321111111`, you can make the largest joltage possible, _`98`_, by turning on the first two batteries. +* In `811111111111119`, you can make the largest joltage possible by turning on the batteries labeled `8` and `9`, producing _`89`_ jolts. +* In `234234234234278`, you can make _`78`_ by turning on the last two batteries (marked `7` and `8`). +* In `818181911112111`, the largest joltage you can produce is _`92`_. + +The total output joltage is the sum of the maximum joltage from each bank, so in this example, the total output joltage is `98` + `89` + `78` + `92` = _`357`_. + +There are many batteries in front of you. Find the maximum joltage possible from each bank; _what is the total output joltage?_ diff --git a/2025/03/README.md:Zone.Identifier b/2025/03/README.md:Zone.Identifier new file mode 100644 index 0000000..053d112 --- /dev/null +++ b/2025/03/README.md:Zone.Identifier @@ -0,0 +1,3 @@ +[ZoneTransfer] +ZoneId=3 +HostUrl=about:internet