aoc2021/day04/part1.py
def sol(grilles, numbers, marks) -> tuple:
    """ retourn no de grille, numero sorti"""

    for n in numbers:
        print(n)
        if n in marks:
            continue
        marks.add(n)

        no = check_win_grilles(grilles, marks)
        if no != -1:
            # print(no)
            # print(grilles[no])
            # sum = sum_unmarked(grilles[no], marks)
            # print(n, sum)
            # return n * sum
            return n, no

    return (0, 0)
 retourn no de grille, numero sorti
retourn no de grille, numero sorti
retourn no de grille numero sorti
def sol(grilles, numbers, marks) -> tuple:
    for n in numbers:
        print(n)
        if n in marks:
            continue
        marks.add(n)
        no = check_win_grilles(grilles, marks)
        if no != -1:
            return n, no
    return (0, 0)
def sol ( grilles , numbers , marks ) -> tuple : for n in numbers : print ( n ) if n in marks : continue marks . add ( n ) no = check_win_grilles ( grilles , marks ) if no != - 1 : return n , no return ( 0 , 0 )
retourn no de grille, numero sorti
retourn no de grille numero sorti
""" retourn no de grille, numero sorti""" # print(no)
 # print(grilles[no])
 # sum = sum_unmarked(grilles[no], marks)
 # print(n, sum)
 # return n * sum

grilles
numbers
marks