Objets/Documentation
sejour21.py
Je fournis le code pour cette étude. Rétablir la garantie d’un calendrier
Télécharger ↓"""Certify the first restoring dwell using nested feasible sets of delay paths."""
from math import lcm
import json
from ruptures20 import solve
from decalages19 import run
def study(q):
T=lcm(24,q);target=run(q,1)['one'];cache={}
def trial(h):
if h not in cache:cache[h]=solve(q,1,h)
return cache[h]['two']
lo,hi=1,T
while lo<hi:
mid=(lo+hi)//2
if trial(mid)==target:hi=mid