Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

applejag/adventofcode-2024-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

27 Commits

Repository files navigation

Advent of Code 2024 via Go

This repo contains my attempt at Advent of Code 2024 (https://adventofcode.com/2024), after I gave up on trying to use OCaml in https://github.com/applejag/adventofcode-2024-ocaml

Running

Requires Go 1.23.2 (or later)

$ go run .
Usage: go run . <day> [flags]
Flags:
 -f, --file string Input file (defaults to "inputs/day%02d.txt" using the "<day>" argument)
 -h, --help Show this help text
 -p, --part int Part to execute, where 0 means run both part 1 and part 2
 -v, --verbose Show debug logs
$ go run . 3
INFO day=3 part=1
 solution=
 │ 170778545
INFO day=3 part=2
 solution=
 │ 82868252

Languages

AltStyle によって変換されたページ (->オリジナル) /