Skip to content

Conversation

eunice-hong
Copy link
Collaborator

✔️ Solution

  1. Part 1: 정규 표현식을 사용해 유효한 mul(X,Y) 패턴을 찾아내고, 숫자를 곱한 결과를 모두 더합니다. 곱셈 명령어 외의 손상된 문자열은 무시합니다.
  2. Part 2: 추가로 do()don't() 명령어를 처리하여, 곱셈 명령어를 활성화하거나 비활성화합니다. 가장 최근의 활성화/비활성화 명령어만 적용되며, 기본적으로 곱셈 명령어는 활성화된 상태로 시작합니다.

✔️ Reference

  1. Advent of Code 문제 설명: Advent of Code 2024 Day 3 문제 및 예제 참고.

@eunice-hong eunice-hong added the aoc: solution Solution to Advent of Code problems label Dec 3, 2024
@eunice-hong eunice-hong self-assigned this Dec 3, 2024
@eunice-hong eunice-hong requested a review from a team as a code owner December 3, 2024 15:54
@eunice-hong eunice-hong requested review from renardyreveur and removed request for a team December 3, 2024 15:54
Copy link
Collaborator

@renardyreveur renardyreveur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aoc: solution Solution to Advent of Code problems

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants