diff options
Diffstat (limited to '4.py')
-rw-r--r-- | 4.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -25,9 +25,10 @@ boards = [board_from_string(board) for board in boards] first: Win = Win(None, max(nums)) last: Win = Win(None, 0) for i, board in enumerate(boards): - row: int = min(max(row) for row in board) - col: int = min(max(col) for col in zip(*board)) - win: Win = Win(i, min(row, col)) + win: Win = Win(i, min( + min(max(row) for row in board), + min(max(col) for col in zip(*board)) + )) if win.round < first.round: first = win if win.round > last.round: last = win |