Giter Club home page Giter Club logo

advent-of-code-golf-2020's Introduction

Advent of Code Golf 2020

tl;dr same setup as last year and the year before. In spite of the pandemic, I'm actually way busier this year (or I should be), so I'll be happy if I last longer than last year. And Zarquon help me if we have anything like Intcode.


This repository contains golfed solutions to Advent of Code 2020 in my personal golfing programming language, Paradoc, version 0.6. Hopefully the Rust implementation will sometimes also work and produce an answer much faster.

(These are not the solutions I compete on the leaderboard with; I think there are enough repos with such solutions and my solutions wouldn't be that different. I have also not been careful about preserving my code for level 1 before doing level 2 of each day.)

I could obviously cheat at golf by adding built-ins to Paradoc tailored to each challenge after seeing it, so my programs here ought to run on Paradoc version 0.6, which was pushed just before this year's Advent of Code. I will be using the results here to guide improving Paradoc in the future, though.

Note on byte count: Like a lot of the other golfing languages seen on the Programming Puzzles & Code Golf StackExchange, the byte counts here assume programs were encoded in the Paradoc code page. These programs will almost always take up more than the stated byte count as UTF-8 strings, and for the sake of easy viewability, they are UTF-8 encoded below and in the programs in this repository.

Day-Level Bytes Code Try In-Browser
1-1 12 (−2?) y²¨γgŠ2020=Þ (in 2020: y²¨γgŠNy=Þ) try
1-2 13 (−2?) y³¨¨γgŠ2020=Þ (in 2020: y³¨¨γgŠNy=Þ) try (slow!)
2-1 19 a{W~\‹#\Ig~M\u]$p}# try
2-2 20 a{W~\oIgLm(m=y^L2=}# try
3-1 10 a{Y3*=cÔ}š try
3-2 22 a5{!)%Y×(L{Y*=cÔ}vŠ}yÞ try
4-1 14 iN×/µW‹mXúç}7# try
4-2 166 iN×/µW{4>q(<ŠZú[{I1961±42<}{"amb blu brn gry grn hzl oth"W\#}{DpâqL9=&}{I45²±6<}{('#=\:L6=\ÅhLc-!&&}0_:{I2015±6<}{2m<q>["cm"{I7³½±22<}"in"{I67.5±9<}1_0]s}]=c~}#}7# try
5-1 9 a7ú2ú2BvÆ try
5-2 13 a7ú2ú2Bv)mq-Œ try
6-1 10 iN×/γšW|rL try
6-2 10 iN×/γšW&rL try
7-1 40 aµW4÷>o_(µ«»¨}}"shinygold"†\{\&bf‹m}bFL( try
7-2 43 aεW4÷(2<¨\µ«(I\¨°~}Hu}"shinygold"{H=•š)}–•( try (slow!) try fast var.
8-1 41 a–0:λ:Hzγ;PE&:Ho:•=W~I\‹5%[β;)+_γ\+u)]=~} try
8-2 61 a·Lχ0:Hj;λ:HzQ_&:•L=γ;PE&:Ho:Z=:o•=W~I\i‹5%^[β;)+_γ\+u):]=~}} try (slow!)
9-1 18 y26W{)\²¨ÛfŠm#!}=› try
9-2 44? y:26W{)\²¨ÛfŠm#!}=›\<s{>s{:Š\u={ŒqÆ+PE}&}y}y try (slow!)
10-1 14 y0+$¯ä13d#y~)* try
10-2 18 y$0Hoε:4-yHzšHu}H› try
11-1 45 aJú3ú{γ0Cfv™×γ3Wv™×µ¨:4=[Ôô_γÔç5<Æ_]=~}m}FÔçš try (slow!)
11-2 80–119? see file (all sols too slow to solve actual input now).
12-1 57 aγ^j*0–0\1\ε(AúIu[β*k¸:β6ò•/j_¦βAò•M_*j_{}]=~\+u};~jLd+=i try
12-1 57 a0\1jAá\ε(AúIu[γ*q;+u:γ6ò^j*-j_¦γAò^j*-_+j_+_]=~};~jLd+=i try
13-1 14 iIg(M{\%X]}vŒÞ try
13-1 37 i'x'0ZtIg»1\0\ε{:oX*yÁ{Y+X#}gX\*u}&}¸ need impl
14-1 34 aε:'k#γ7>–{Ig~•23dγyÚ2B~|u&Hu}?}HŠ tbd
14-2 60 aε:'k#γ7>–{Ig~\•D{Bú[γ;2,{Y>sÔ†}γ;1†]=c~}yDβ×u+Bbr\Huv;}?}HŠ tbd

advent-of-code-golf-2020's People

Contributors

betaveros avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.