Unable to load image

r/drama Advent of Code S02E01 - Official DISCUSSION Thread

Ok you Python-using heathens. What did you think for difficulty this time around?

Post your coding atrocities below.

For those of you who missed the early signups. Feel free to join the leaderboard late (though rankings are based on time).

42
Jump in the discussion.

No email address required.

Alrighty, enough solutions have been posted that this won't be a major spoiler anymore.

Here's a nice, clean, Pythonic solution:

from num2words import num2words as n2w
𝓜 = {𝓕(𝓭):𝓭 for 𝓕 in [n2w,str] for 𝓭 in range(10)}
屎 = lambda 鲤: [(屙(鲤,屁), 𝓜[屁]) for 屙 in [str.find,str.rfind] for 屁 in 𝓜 if 屁 in 鲤]
ඞ = lambda ම: min(ම)[1]*10+max(ම)[1]
print(sum(ඞ(屎(𝓛)) for 𝓛 in open('feed&seed.txt').readlines()))
Jump in the discussion.

No email address required.

import num2words

:marseycringe2:

Jump in the discussion.

No email address required.

"I used Python but had someone else solve it for me"

:#marseynerd2talking:

Jump in the discussion.

No email address required.

Cry more. While you spent nine hours typing out the names of all the digits, my four hundred gigabyte python venv was already blasting through problems which haven't even been posted yet.

Jump in the discussion.

No email address required.

lol import problemsolver

Jump in the discussion.

No email address required.

Most based solution

Jump in the discussion.

No email address required.

屙鲤屁

i wonder if anyone realised what those characters meant :marseywink:

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.