From b6727bcc98c0204b09aba0e41cf2d939d2a902d6 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Wed, 3 Dec 2025 01:06:14 -0500 Subject: [PATCH] 2025 Day 1 Part 1 --- 2025/.gitignore | 1 + 2025/aoc.ua | 1 + 2025/day01.ua | 10 ++++++++++ README.md | 9 +++++++-- 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 2025/.gitignore create mode 100644 2025/aoc.ua create mode 100644 2025/day01.ua diff --git a/2025/.gitignore b/2025/.gitignore new file mode 100644 index 0000000..59ded47 --- /dev/null +++ b/2025/.gitignore @@ -0,0 +1 @@ +/input diff --git a/2025/aoc.ua b/2025/aoc.ua new file mode 100644 index 0000000..d94d4b8 --- /dev/null +++ b/2025/aoc.ua @@ -0,0 +1 @@ +Lines ← ⊜□ ⊸≠ @\n diff --git a/2025/day01.ua b/2025/day01.ua new file mode 100644 index 0000000..69924af --- /dev/null +++ b/2025/day01.ua @@ -0,0 +1,10 @@ +~ "aoc.ua" ~ Lines + +Input ← Lines &fras "input/day01.txt" + +Dirs ← ≡°□ +⊃(¯=@L) (=@R) ⍚⊢ Input +Amts ← ⋕⍚(↘ 1) Input + +× Dirs Amts +⬚50\(◿ 100 +) +/+ = 0 diff --git a/README.md b/README.md index 625e507..1f53abc 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ -I like solving the [Advent of Code](https://adventofcode.com/) challenges every year, and these are my solutions. I use this as a way to learn a new language or try new techniques in one I'm already using, so my code isn't likely to be idiomatic or good. I don't expect this to be useful to anyone, but I'm having fun! :D +I like solving the [Advent of Code](https://adventofcode.com/) challenges every +year, and these are my solutions. I use this as a way to learn a new language +or try new techniques in one I'm already using, so my code isn't likely to be +idiomatic or good. I don't expect this to be useful to anyone, but I'm having +fun! 😄 - 2015: TODO - 2016: TODO @@ -10,10 +14,11 @@ I like solving the [Advent of Code](https://adventofcode.com/) challenges every - 2022: Rust (Again! v1.65, 2021 edition) - 2023: Nim - 2024: Zig +- 2025: Uiua Languages I'd like to use for the future or TODO years: + - Gleam - Haskell - Inko - Koka -- Uiua (or other APL-like)