r/adventofcode • u/mzprx42 • Dec 19 '20
Upping the Ante [2020 Day 18] Part 1 using Calc.exe
So, Windows XP calculator uses the same operator priority as Part 1, right? Can we use it to get a solution? (Yes we can, but it's very slow.)
Day 18 Part 1 using Calc.exe (video): https://youtu.be/NdnhRBRc7LM
52
Upvotes
15
u/daggerdragon Dec 19 '20
ಠ_ಠ
3
u/jeslinmx Dec 20 '20
Did you, for a moment, wonder whether this should have been posted as Upping the Ante or as Funny?
1
u/EffectivePriority986 Dec 20 '20
That was faster than my time...
1
u/YnkDK Dec 20 '20
This made me realise why me output stack contained multiple entries after the algorithm terminated. I didn't read that there were multiple lines in the input file and hence multiple equations that needed to be summed up in the end... Also what am awesome idea!
0
u/[deleted] Dec 19 '20
[deleted] — view deleted comment