Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
Load more
?Unknown authorDec 5, 2026, 9:39 AM

I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

adventofcode.comDay 5 - Advent of Code 2026
@ironbeardcoffee.bsky.socialDec 5, 2026, 9:10 AM

I just completed "Dusty Shed" - Day 1 - Advent of Code 2026, better late than ever! This year it is really important so I remember how to code by hand. #AdventOfCode adventofcode.com/2026/day/1

adventofcode.comDay 1 - Advent of Code 2026
@shub39.bsky.socialDec 5, 2026, 8:44 AM

I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026

This was fun, putting all buttons to distinct types, then solving part 1 by iteration and part 2 by recursion

#AdventOfCode adventofcode.com/2026/day/5

Photo, no descriptionPhoto, no description
E@emurphy.bsky.socialDec 5, 2026, 8:41 AM

I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

adventofcode.comDay 5 - Advent of Code 2026
@phucco.bsky.socialDec 5, 2026, 8:36 AM

I've completed *JUST* Part One of "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5
I'll have a think about how to not-brute-force my way through Part 2 as I go about my day.

adventofcode.comDay 5 - Advent of Code 2026
@roro.moeDec 5, 2026, 8:25 AM

#AdventOfCode day 2 but it's Factorio

@laurentdietrich.bsky.socialDec 5, 2026, 8:12 AM

I've completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

adventofcode.comDay 5 - Advent of Code 2026
@scannorone.bsky.socialDec 5, 2026, 8:08 AM

My AoC solutions for this year: github.com/DmitryNekras...

#AdventOfCode

github.comGitHub - DmitryNekrasov/AoC-2026: Advent of Code 2026Advent of Code 2026. Contribute to DmitryNekrasov/AoC-2026 development by creating an account on GitHub.
@scannorone.bsky.socialDec 5, 2026, 8:01 AM

I've completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

adventofcode.comDay 5 - Advent of Code 2026
@saltthewind.bsky.socialDec 5, 2026, 7:55 AM

Aaaand another one:

I just completed "Foggy Forest" - Day 3 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/3

Doing each day on a different lang! #Zig is fun to write in :) Hopefully the following days aren't too hard so I get to experiment a little bit with new langs 🥹

adventofcode.comDay 3 - Advent of Code 2026
@blfuentes.bsky.socialDec 5, 2026, 7:49 AM

I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5 #FSharp

adventofcode.comDay 5 - Advent of Code 2026
@cow.computerDec 5, 2026, 7:34 AM

I've completed "Perilous Pier" - Day 4 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/4

git.cow.computer/cow/adventof...

The part 1 solution I did was really bad, even by my standards, thus part 2 is pretty much a rewrite.

git.cow.computer/cow/adventof...

adventofcode.comDay 4 - Advent of Code 2026
@xavd.idDec 5, 2026, 7:21 AM

#AdventOfCode writeup for day 3 (in #Python).

I'm falling behind a bit because work's been busy and the posts take so long to write, but I'll get there. Thanks for bearing with me!

advent-of-code.xavd.id/writeups/202...

advent-of-code.xavd.idAdvent of Code 2026 Day 3: Foggy ForestA step-by-step Python walkthrough for solving Advent of Code 2026 Day 3.
@pkitslaar.bsky.socialDec 5, 2026, 7:16 AM

I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

adventofcode.comDay 5 - Advent of Code 2026
@azi1mov.lxze.meDec 5, 2026, 7:09 AM

🫠 | I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

adventofcode.comDay 5 - Advent of Code 2026
?Unknown authorDec 5, 2026, 7:00 AM

🎄 #AdventOfCode day 5

This was easier than yesterday for me. Parsing was a breeze thanks to 🐫 #OCaml lexer.

I spent a few minutes 🤔 wondering why my code for part 2 didn't give the right result before realizing that I was running it on the sample rather than on my actual input… 😅

{
  type buttons = App of int | Mul of int | Div of int | Swp of char * string | Oct | Del
  let press screen = function
    | App d -> screen * 10 + d
    | Mul d -> screen * d
    | Div d -> screen / d
    | Swp (a, b) -> int_of_string String.(concat b (split_on_char a (string_of_int screen)))
    | Oct -> int_of_string (Printf.sprintf "%o" screen)
    | Del -> screen / 10
}

let digit = ['0' - '9']

rule buttons = parse
| eof { [] }
| ' ' | '\n' { buttons lexbuf }
| "[" (digit as d) "]" { App (int_of_char d - int_of_char '0') :: buttons lexbuf }
| "[*" (digit as d) "]" { Mul (int_of_char d - int_of_char '0') :: buttons lexbuf }
| "[/" (digit as d) "]" { Div (int_of_char d - int_of_char '0') :: buttons lexbuf }
| "[" (digit as a) "->" (digit as b) "]" { Swp (a, String.make 1 b) :: buttons lexbuf }
| "[oct]" { Oct :: buttons lexbuf }
| "[bksp]" { Del :: buttons lexbuf }

{
  let buttons = buttons (Lexing.from_channel stdin) in
  let smash screen = List.map (press screen) buttons in
  let screens =
    let rec loop n screens =
      if n = 0 then screens else
      loop (n - 1) List.(map smash screens |> concat |> sort_uniq Stdlib.compare)
    in loop 3 [0]
  in
  Printf.printf "%d\n" (List.fold_left (+) 0 screens)
}
{
  type buttons = App of int | Mul of int | Div of int | Swp of char * string | Oct | Del
  let press screen = function
    | App d -> screen * 10 + d
    | Mul d -> screen * d
    | Div d -> screen / d
    | Swp (a, b) -> int_of_string String.(concat b (split_on_char a (string_of_int screen)))
    | Oct -> int_of_string (Printf.sprintf "%o" screen)
    | Del -> screen / 10
}

let digit = ['0' - '9']

rule buttons = parse
| eof { [] }
| ' ' | '\n' { buttons lexbuf }
| "[" (digit as d) "]" { App (int_of_char d - int_of_char '0') :: buttons lexbuf }
| "[*" (digit as d) "]" { Mul (int_of_char d - int_of_char '0') :: buttons lexbuf }
| "[/" (digit as d) "]" { Div (int_of_char d - int_of_char '0') :: buttons lexbuf }
| "[" (digit as a) "->" (digit as b) "]" { Swp (a, String.make 1 b) :: buttons lexbuf }
| "[oct]" { Oct :: buttons lexbuf }
| "[bksp]" { Del :: buttons lexbuf }

{
  let buttons = buttons (Lexing.from_channel stdin) in
  let smash screen = List.map (press screen) buttons |> List.filter ((>) 10000) in
  let module S = Set.Make(Int) in
  let screens =
    let rec loop screens =
      let screens' = S.fold (fun s s' -> S.add_seq (List.to_seq (smash s)) s') screens screens in
      if S.(cardinal screens' = cardinal screens) then screens
      else loop screens'
    in loop (S.singleton 0)
  in
  Printf.printf "%d\n" (S.fold (+) screens 0)
}
@trendtags.bsky.socialDec 5, 2026, 7:00 AM

🔥 BlueSky trending tags (30m):

#mutantfam #thelastdrivein #photography #birdoftheday #auspol #fcf #aew #adventofcode #blackpink #blissoo #omniscient-reader-the-prophecy-2 #jisoo #news #nvidia #booksky

?Unknown authorDec 5, 2026, 6:53 AM

I just completed "Rhythmic Factory" - Day 5 2026

I started out doing all combinations of 3 buttons, which was way too slow for part 2. Most of my time was spent on the parser, so switching to a BFS approach wasn't too bad. Cheated by slowly increasing the maximum number of presses 🤫

#AdventOfCode