diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-01-01 20:17:26 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-01-01 20:31:56 -0500 |
| commit | 9fd6659932f8e995934f3a9a3cacea0ba6c474bc (patch) | |
| tree | d98cd8d09c6a4c774ddac28b611610c3f9abb821 /community/aoc.md | |
| parent | bd63bb840a3ceb22065f317db32270c0a428a149 (diff) | |
Display AoC solutions in languages other than BQN
Diffstat (limited to 'community/aoc.md')
| -rw-r--r-- | community/aoc.md | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/community/aoc.md b/community/aoc.md index 4a02b8ab..bef10224 100644 --- a/community/aoc.md +++ b/community/aoc.md @@ -2,21 +2,21 @@ # Advent of Code -[Advent of Code 2021](https://adventofcode.com/2021) saw great participation by the BQN community, with a total of 227 solutions published by 22 programmers. They can be found in these repositories: +[Advent of Code 2021](https://adventofcode.com/2021) saw great participation by the BQN community, with a total of 229 solutions published by 22 programmers. They can be found in these repositories: <center> -[Raghu Ranganathan](https://github.com/razetime/AOC2021-BQN) • [dzaima](https://github.com/dzaima/aoc/tree/master/2021/BQN) • [Hannu Hartikainen](https://github.com/dancek/bqn-advent2021) • +[Raghu Ranganathan](https://github.com/razetime/AOC2021-BQN) • [frasiyav](https://github.com/frasiyav/AoC2021) • [Leah Neukirchen](https://github.com/leahneukirchen/adventofcode2021) • [Antti Keränen](https://github.com/Detegr/aoc2021) • [Caleb Quilley](https://gitlab.com/icen/aoc21) • [Alex Dikelsky](https://github.com/AlexDikelsky/puzzles/tree/main/advent_of_code/advent_2021) • [Andrey Popp](https://github.com/andreypopp/aoc2021) • -[Johnny](https://github.com/JohnnyJayJay/adventofcode-21) • [Alvin Voo](https://github.com/alvinvoo/aoc2021) • +[Johnny](https://github.com/JohnnyJayJay/adventofcode-21) • [Ben Dean](https://github.com/bddean/aoc-2021) • [Josh Holland](https://git.sr.ht/~jshholland/adventofcode/tree/master/item/2021) • [Alastair Williams](https://github.com/alephno/aoc2021/tree/main/BQN) • @@ -31,9 +31,12 @@ </center> +Below, problems solved in BQN are shown in green, and problems solved in other languages in dark red. + <!--GEN -nam ← ⟨"Raghu","dzaima","Hannu","frasiyav","Leah","Antti","Caleb","Alex","Andrey","Johnny","Alvin","Ben","Josh","Alastair","Olodus","Aren","Dimitri","Alexander","Mathias","m-lima","Dunya","Benjamin"⟩ -sol ← ⟨1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿12‿13‿14‿15‿16‿17‿18‿19‿20‿21‿22‿23‿24‿25,1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿12‿13‿14‿15‿16‿17‿18‿19‿20‿21‿22‿23‿24‿25,1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿12‿13‿14‿15‿16‿17‿18‿19‿20‿21‿22‿24‿25,1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿12‿13‿14‿15‿16‿17‿18‿19‿20‿21‿22,1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿13‿14‿15‿17‿18‿20‿21‿24‿25,1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿12‿13‿14‿15‿16‿17‿18‿20‿21,1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿12‿13‿14‿15,1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿13‿14,1‿2‿3‿5‿6‿7‿11‿12‿13‿15‿17‿20,1‿2‿3‿4‿5‿6‿7‿9‿10,1‿2‿3‿4‿5‿6‿7‿8‿9,1‿2‿3‿4‿5‿6‿7,1‿2‿3‿4‿5‿6‿7,1‿3‿6‿7‿9,1‿2‿3‿9,6‿7‿9,1‿3,⟨3⟩,⟨3⟩,⟨1⟩,⟨1⟩,⟨1⟩⟩ +nam ← ⟨"dzaima","Hannu","Raghu","frasiyav","Leah","Antti","Caleb","Alex","Andrey","Alvin","Johnny","Ben","Josh","Alastair","Olodus","Aren","Dimitri","Alexander","Mathias","m-lima","Dunya","Benjamin"⟩ +sol ← ⟨1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿12‿13‿14‿15‿16‿17‿18‿19‿20‿21‿22‿23‿24‿25,1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿12‿13‿14‿15‿16‿17‿18‿19‿20‿21‿22‿24‿25,1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿12‿13‿14‿15‿16‿17‿18‿19‿20‿21‿22‿25,1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿12‿13‿14‿15‿16‿17‿18‿19‿20‿21‿22,1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿13‿14‿15‿17‿18‿20‿21‿24‿25,1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿12‿13‿14‿15‿16‿17‿18‿20‿21,1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿12‿13‿14‿15‿16‿17‿18,1‿2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿13‿14,1‿2‿3‿5‿6‿7‿11‿12‿13‿15‿17‿20,1‿2‿3‿4‿5‿6‿7‿8‿9‿10,1‿2‿3‿4‿5‿6‿7‿9‿10,1‿2‿3‿4‿5‿6‿7,1‿2‿3‿4‿5‿6‿7,1‿3‿6‿7‿9,1‿2‿3‿9,6‿7‿9,1‿3,⟨3⟩,⟨3⟩,⟨1⟩,⟨1⟩,⟨1⟩⟩ +als ← ⟨⟨⟩,⟨⟩,⟨⟩,⟨⟩,12‿16‿19‿22‿23,⟨⟩,⟨⟩,⟨12⟩,⟨⟩,⟨⟩,⟨8⟩,⟨⟩,⟨⟩,⟨2⟩,⟨⟩,1‿2‿3‿4‿5‿8‿10‿11‿12,2‿5‿6‿7‿9‿10‿12‿13‿14‿15‿16‿17‿20‿21,1‿2,1‿2,2‿3‿4‿5‿6‿7‿8‿9‿10‿11‿12‿13‿14‿15‿16‿17,⟨⟩,⟨⟩⟩ Ge ← "g"⊸At⊸Enc @@ -47,7 +50,9 @@ rc ← At "class=code|stroke-width=1|rx=6" gt ← "stroke-width=1|font-size=14px|fill=currentColor" Path ← "path" Elt "d"⊸⋈⊘(⊣∾"d"⋈⊢) -bar ← (/¯∞⊸»<-⟜1)⊸(⊏⋈¨«˜⟜≠-⊣)¨ sol-1 +Ct ← (/¯∞⊸»<-⟜1)⊸(⊏⋈¨«˜⟜≠-⊣)¨ -⟜1 +Bp ← (0<≠¨)⊸/ (h0+th×0.25+↕n) (∾((w0+⊑∘⊢)∾⊣∾1⊑⊢)¨)¨ tw×Ct +Bars ← (Path·∾("M h"⥊˜≠)∾¨FmtNum)¨ Bp ((-out÷2)∾wh+out) SVG gt Ge ∾⥊¨ ⟨ <"rect" Elt rc∾(Pos 0‿0)∾"width"‿"height"≍˘FmtNum wh @@ -57,24 +62,25 @@ bar ← (/¯∞⊸»<-⟜1)⊸(⊏⋈¨«˜⟜≠-⊣)¨ sol-1 "font-size=11px" Ge ((w0+tw×0.5+↕m)Pos∘⋈¨h0-10) "text"⊸Attr⊸Enc¨ FmtNum 1+↕25 ⟩ (10 Pos∘⋈¨h0+th×0.5+↕n) "text"⊸Attr⊸Enc¨ nam - "stroke-width=6|class=green" Ge Path¨ (∾("M h"⥊˜≠)∾¨FmtNum)¨ (h0+th×0.25+↕n) (∾((w0+⊑∘⊢)∾⊣∾1⊑⊢)¨)¨ tw×bar + "stroke-width=6|class=green|opacity=0.9" Ge Bars sol + "stroke-width=6|class=red|opacity=0.2" Ge Bars als ⟩ --> In addition to these, Leah wrote two blog posts explaining her solutions for [day 6](https://leahneukirchen.org/blog/archive/2021/12/counting-lanternfish-with-bqn-and-linear-algebra.html) and [day 9](https://leahneukirchen.org/blog/archive/2021/12/surveying-lava-basins-with-bqn-and-fixpoints.html). -The number of solutions for each of the 25 days is plotted below, along with totals from AoC's [stats page](https://adventofcode.com/2021/stats). The BQN solutions are scaled to be visible here: there are 6878 times more valid AoC submissions than published BQN solutions overall. +The number of BQN solutions for each of the 25 days is plotted below, along with totals from AoC's [stats page](https://adventofcode.com/2021/stats). The BQN solutions are scaled to be visible here: there are 6852 times more valid AoC submissions than published BQN solutions overall. <!--GEN -aoc ← 214183‿178707‿156934‿101905‿89145‿89611‿84430‿75496‿69537‿62465‿54756‿47769‿48691‿48892‿38342‿31413‿31285‿22540‿14786‿20695‿23507‿19100‿13132‿10362‿13510 -bqn ← 19‿14‿18‿12‿13‿15‿15‿9‿13‿9‿9‿7‿9‿8‿8‿5‿7‿6‿4‿7‿6‿4‿2‿4‿4 +aoc ← 214772‿179251‿157424‿102255‿89476‿89979‿84801‿75821‿69845‿62756‿55033‿48032‿48971‿49169‿38597‿31649‿31545‿22776‿15016‿20917‿23743‿19352‿13426‿10693‿13895 +bqn ← 19‿14‿18‿12‿13‿15‿15‿9‿13‿10‿9‿7‿9‿8‿8‿6‿8‿7‿4‿7‿6‿4‿1‿3‿4 width ← 256 pad ← 40‿40 pad1 ← 40‿10+pad pc ← At "class=red|r=4" -gr ← "stroke-width=1|font-size=13px|text-anchor=end|fill=currentColor" +gr ← "stroke-width=1.2|font-size=13px|text-anchor=end|fill=currentColor" col ← "class"⊸⋈¨"red"‿"green" lab ← "Solutions in:"‿"Anything"‿"BQN" |
