2025 Day 1 Part 1
This commit is contained in:
parent
dd0755e2dc
commit
b6727bcc98
4 changed files with 19 additions and 2 deletions
1
2025/.gitignore
vendored
Normal file
1
2025/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/input
|
||||||
1
2025/aoc.ua
Normal file
1
2025/aoc.ua
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Lines ← ⊜□ ⊸≠ @\n
|
||||||
10
2025/day01.ua
Normal file
10
2025/day01.ua
Normal file
|
|
@ -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
|
||||||
|
|
@ -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
|
- 2015: TODO
|
||||||
- 2016: 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)
|
- 2022: Rust (Again! v1.65, 2021 edition)
|
||||||
- 2023: Nim
|
- 2023: Nim
|
||||||
- 2024: Zig
|
- 2024: Zig
|
||||||
|
- 2025: Uiua
|
||||||
|
|
||||||
Languages I'd like to use for the future or TODO years:
|
Languages I'd like to use for the future or TODO years:
|
||||||
|
|
||||||
- Gleam
|
- Gleam
|
||||||
- Haskell
|
- Haskell
|
||||||
- Inko
|
- Inko
|
||||||
- Koka
|
- Koka
|
||||||
- Uiua (or other APL-like)
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue