def contient_doublon(t):
    """le tableau t contient-il un doublon ?"""
    s = [False] * 367
    for x in t:
        if s[x]:
            return True
        s[x] = True
    return False