[Jprogramming] aoc day 20

Jimmy Gauvin jimmy.gauvin at gmail.com
Wed Dec 20 17:09:55 UTC 2017


​​
​​
Another spoiler for part 1  in the tradition of APL one-liners:

{. /:+/"1|_3{."1 ". ;._2 (1!:1 <'\\AOC2017\Day20input.txt') -. 'pva=<>'

NB. Smallest acceleration wins long term


On Wed, Dec 20, 2017 at 11:34 AM, Jimmy Gauvin <jimmy.gauvin at gmail.com>
wrote:

> Where do the candy cane and the barber come from?
> Have the elves been playing with your code?
>
> C A N D Y
>  S C A N E R
>     S P O I L E R
>        S P O I L E R
>           S P O I L
> E R          S P O I
>  L E R          S P
> O I L E R          S
>  P O I L E R
>   B A R B E R P
>
> On Wed, Dec 20, 2017 at 9:17 AM, David Lambert <b49p23tivg at gmail.com>
> wrote:
>
>> First time I've used Nub Sieve,
>>
>>    24 20$23{.1j1#'SPOILER'
>> S P O I L E R
>>    S P O I L E R
>>       S P O I L E R
>>          S P O I L E
>>  R          S P O I
>> L E R          S P O
>>  I L E R          S
>> C A N D Y
>>  S C A N E R
>>     S P O I L E R
>>        S P O I L E R
>>           S P O I L
>> E R          S P O I
>>  L E R          S P
>> O I L E R          S
>>  P O I L E R
>>   B A R B E R P
>>      O L E I L E R
>>         S P O I L E
>> R          S P O I L
>>  E R          S P O
>> I L E R          S P
>>  O I L E R
>> S P O I L E R
>>
>>
>>
>


More information about the Programming mailing list