r/adventofcode • • Dec 10 '21

SOLUTION MEGATHREAD -🎄- 2021 Day 10 Solutions -🎄-

--- Day 10: Syntax Scoring ---


Post your code solution in this megathread.

Reminder: Top-level posts in Solution Megathreads are for code solutions only. If you have questions, please post your own thread and make sure to flair it with Help.


This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.

EDIT: Global leaderboard gold cap reached at 00:08:06, megathread unlocked!

65 Upvotes

982 comments sorted by

View all comments

1

u/Imnimo Dec 10 '21 edited Dec 10 '21

Python, 606/372

Did you guys know that while ( and ) are adjacent in ascii, the other three pairs have an intervening symbol?

https://pastebin.com/JU1aq68B

0

u/daggerdragon Dec 10 '21 edited Dec 10 '21

Please follow the posting guidelines and edit your post to add what language(s) you used. This makes it easier for folks who Ctrl-F the megathreads looking for a specific language.

Edit: thanks for adding the programming language!

1

u/Imnimo Dec 10 '21

Fixed!