Prog Caml : Affiche nb fois un motif donné

Écrire un programme qui demande un mot, appelé motif, et un nombre nommé nb, et affiche nb fois le mot motif, en séparant ces mots par des espaces.

TIME AND MEMORY LIMITS (Python)

  • Time: 4s on a 1GHz machine.
  • Memory: 1,000 KB.

EXAMPLE

input:

Algorithme
5

output:

Algorithme Algorithme Algorithme Algorithme Algorithme

Source: https://www.france-ioi.org. Created by : Arthur Charguéraud.