Everybody Codes: The Digital Atelier - Quest 1
Preparations for the princess's wedding are in full swing, and the royal court has announced a competition for the most beautiful ballroom decorations. One of the challenges is to design the ornamental trimming for the grand curtains surrounding the dance floor.
You can send code in code blocks by surrounding it in triple backticks (``````) and make it collapsible by surrounding it in spoiler syntax. Or you could use something such as https://topaz.github.io/paste/ if you prefer sending it through a URL.
https://everybody.codes/story/4/quests/1Open linkView original on programming.dev
1 reply
Python
Made a single cleaned-up solver for all 3 parts after solving them separately. Intersection logic can be optimized, but the inputs are small enough to not need it.
::: spoiler click to view code
:::