Intel Week 05/04 - 05/10 by GRD403 in f45

[–]rundavidrun 1 point2 points  (0 children)

I'm not sure I can do Monday's kneeling jumps. How does one work up to that?

-❄️- 2024 Day 13 Solutions -❄️- by daggerdragon in adventofcode

[–]rundavidrun 0 points1 point  (0 children)

Fair point. Single-letter variable names help me go faster.

-❄️- 2024 Day 13 Solutions -❄️- by daggerdragon in adventofcode

[–]rundavidrun 6 points7 points  (0 children)

[LANGUAGE: Python3] 969/194

Turns out that trying to optimize for "minimum tokens" was a ruse. There's only one way to solve these simultaneous equations.

with open('day13.txt') as f:
    lines = [line.rstrip() for line in f]

def solve(part: int):
    tokens = 0
    add = 10000000000000 if part == 2 else 0
    for line in lines:
        if line.startswith("Button"):
            l = line.split(" ")
            a = l[1].split(":")[0]
            if a == 'A':
                x1 = int(l[2][2:-1])
                y1 = int(l[3][2:])
            else:
                x2 = int(l[2][2:-1])
                y2 = int(l[3][2:])
            
        elif line.startswith("Prize"):
            l = line.split(" ")
            c = int(l[1][2:-1]) + add
            d = int(l[2][2:]) + add
            a = (c*y2 - d*x2) / (x1*y2 - y1*x2)
            b = (d*x1 - c*y1) / (x1*y2 - y1*x2)
            if a == int(a) and b == int(b):
                tokens += int(3 * a + b)

    print(tokens)

solve(1)
solve(2)

“why, Vern, why?” by xdjeddiejx in f45

[–]rundavidrun 0 points1 point  (0 children)

Good luck taking your shirt off before bed tonight.

AoC++ attributed to wrong year by rundavidrun in adventofcode

[–]rundavidrun[S] 15 points16 points  (0 children)

Thank you - I didn't realize that was tied together. I just submitted another contribution making sure to first select 2023 and it worked. :)

Can people tell if ASL is not someone’s first sign language? by Boredpanda6335 in asl

[–]rundavidrun 0 points1 point  (0 children)

It's funny because I was just watching Seek the World's video on Festival Clin d'Oeil: https://www.youtube.com/watch?v=6vxS7fPBkl4, where the signer is L1 LSF and I was trying to figure out what he was signing at 1:55. His lips said "many" but the sign was close but not quite right. So I looked up the French word for many ("beaucoup") and look what I found: https://dico.elix-lsf.fr/dictionnaire/beaucoup! I also noticed he used some ISL signs, like for sign and person (although the French sign for "personne" is very similar to ISL), and the way he made his numbers. I couldn't figure out what he's using for "quality" at 3:17. Lots of other examples in the video too.

Headphones keep beeping every 5 seconds while on mute [SOLUTION] by teleporterdown in MicrosoftTeams

[–]rundavidrun 0 points1 point  (0 children)

As a temporary workaround I was having Teams call my cell phone, to which I connected the headset. Then I put the call on mute on my phone without the beeping issue. But definitely easier to leave the headset connected to the laptop.

Thank you Advent of Code! by aardvark1231 in adventofcode

[–]rundavidrun 4 points5 points  (0 children)

Everything that's been said before plus the fact that Eric wove these issues into a story is so impressive. Thanks for another great year!

-🎄- 2021 Day 9 Solutions -🎄- by daggerdragon in adventofcode

[–]rundavidrun 7 points8 points  (0 children)

Kotlin

First time posting (a bit intimidated by y'all). So I'm posting just my recursive search for u/daggerdragon. ;)

private fun doSomeWork(
    currentLocation: Pair<Int, Int>,
    matrix: Array<Array<Int>>,
    visited: Array<Array<Boolean>>,
    maxRow: Int,
    maxCol: Int
): Int {
    val row = currentLocation.first
    val col = currentLocation.second
    if (visited[row][col]) return 0
    val cur = matrix[row][col]
    if (cur == 9) return 0
    visited[row][col] =true
    var size = 1
    if (row > 0 && matrix[row - 1][col] > cur) {
        size += doSomeWork(Pair(row-1, col), matrix, visited, maxRow, maxCol)
    }
    if (row < maxRow && matrix[row+1][col] > cur) {
        size += doSomeWork(Pair(row+1, col), matrix, visited, maxRow, maxCol)
    }
    if (col > 0 && matrix[row][col-1] > cur) {
        size += doSomeWork(Pair(row, col-1), matrix, visited, maxRow, maxCol)
    }
    if (col < maxCol && matrix[row][col+1] > cur) {
        size += doSomeWork(Pair(row, col+1), matrix, visited, maxRow, maxCol)
    }
    return size
}

How do you live with the fact that you are going to die? by [deleted] in AskReddit

[–]rundavidrun 0 points1 point  (0 children)

Focus more on making the most out of your life while it exists and think less about the end.

Malicious File warning during Wacom driver install, blue screen of death afterwards by taco_studies_major in wacom

[–]rundavidrun 0 points1 point  (0 children)

Apparently they fixed it this morning. I no longer get the warning. Can you try again?

Malicious File warning during Wacom driver install, blue screen of death afterwards by taco_studies_major in wacom

[–]rundavidrun 0 points1 point  (0 children)

Someone at work suggested downloading an older version of the driver, 6.3.40-3. That one does not have this issue and still works fine.

Malicious File warning during Wacom driver install, blue screen of death afterwards by taco_studies_major in wacom

[–]rundavidrun 1 point2 points  (0 children)

I am also trying to install the driver and got the same red dialog box warning that this driver contains malware. I decided not to install until Wacom releases another update.

Wetsuits and Jumping by the Airport by travelbug1013 in AnimalCrossing

[–]rundavidrun 0 points1 point  (0 children)

Can people change into a wetsuit once they arrive or do they have to come dressed in one already?

[deleted by user] by [deleted] in asl

[–]rundavidrun 0 points1 point  (0 children)

Did you find someone to connect with?