Pouvez vous m'aider avec un algorithme adapté?

Version imprimable