Atelier des rouesLaboratoire EN
Objets/Documentation

lot13.py

Je fournis le matériel du contrôle AT.G29.

Télécharger ↓
"""Replay path geometry and exact coverage for the 32 lazy certificates received at level 41."""
from functools import lru_cache
from math import gcd
from pathlib import Path
import json
from couverture10 import domains, P
from geometrie41 import check

HERE=Path(__file__).resolve().parent

def covered(u,v,paths):
    obligations=[[s] for s in range(u+1,v) if gcd(s,210)==1]+paths
    choices=[]
    for p,allowed in zip(P,domains(u,v)):
        options={sum(1<<i for i,path in enumerate(obligations) if any(x%p==a for x in path)) for a in allowed}
        maximal=[]

Lire dans son contexte

Commentaires

Les commentaires en français et en anglais sont réunis ici.

La discussion reste consultable. J’ouvrirai les participations dès que la protection antispam sera configurée.