(dp: list[list[list[int]]])
| 2 | from itertools import product |
| 3 | |
| 4 | def part1(dp: list[list[list[int]]]) -> str: |
| 5 | xmax,ymax,v = 0,0,0 |
| 6 | for x,y in product(range(1,297), repeat=2): |
| 7 | if dp[x][y][3] > v: |
| 8 | xmax,ymax,v = x,y,dp[x][y][3] |
| 9 | return f"{xmax},{ymax}" |
| 10 | |
| 11 | def part2(dp: list[list[list[int]]]) -> str: |
| 12 | xmax,ymax,sizemax,v = 0,0,0,0 |