[2018 Day 22] Can't believe I've spent hours making such an obvious mistake

Spoilers

Don't think any of the flair fit this one. I guess light spoilers since it discusses part of a problem?

So, I've been going back to prior competitions to polish off some problems I missed in real-time. Day 22 Part 1 discusses traversing this cave with differing region types. It gives a depth and a target as input, and asks for a risk level of the area from the origin to the target. The target is given as some 5 digit number, complete with a comma, so I figure the answer I'm looking for (if the area had an average value of 1 per unit, of a 5 digit x 5 digit area) is some 10 digit number, and the actual answer I got was only off by a couple thousand. That left me sitting with a perfect answer for the test scenario, but no idea how to proceed with the actual question.

Well, anyone following along will probably see the issue. It seems that the target was not a 5 digit number. The xx,xxx that I read, was really a two part coordinate read as xx,yyy.

The kicker... it seems that I solved Part 1 the first time around. Which means that I've gone through this whole thought process more than once. And for the life of me, I just couldn't see why my process was giving me some 10 digit answer, when I'm staring at a 4 digit answer that I've solved before.

Posted Nov 25, 2020, 8:33 PM UTC

71
Key_Reindeer_414•

This almost happened to me too! Luckily I went back to the problem description to see whether it mentions if the x and y coordinates of the target were the same, so I caught my mistake.

1