cours_progra/q1/renforcement/entrainement_0712/cup.py
2023-02-15 13:40:50 +01:00

17 lines
355 B
Python

tab = map(int, input().split)
def nombre_tasse(tab):
"""count the ammount of tasse following weird set of rules """
start_cup = 0
in_cup = False
for k, v in enumerate(tab):
if v < tab[k+1]:
in_cup = True
start_cup = k
elif v < tab[k-1]:
if
return count
print(nombre_tasse(tab))