This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from functools import cmp_to_key | |
| from typing import Optional | |
| # `inp` should be set to actual task input (a multiline string) | |
| lines = [line.split(" ") for line in inp.split("\n")] | |
| test_cases = [] | |
| for line in lines: | |
| test_cases.append({ | |
| "goal": [let == "#" for let in line[0][1:-1]], | |
| "buttons": [[int(val) for val in prnt[1:-1].split(",")] for prnt in line[1:-1]], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div> | |
| <div style="margin: 1ex;">Calculations: {{ calculations }}</div> | |
| <table class="table" border="0"> | |
| <tr class="row"> | |
| <td id="empty_first_cell"></td> | |
| <td class="column" | |
| v-for="(_, j) in cols" :key="'header' + j" | |
| > |