Visual illustration of the code challenge: Braquage du coffre #2

Braquage du coffre #2

Le professeur et son équipe de braqueurs sont en plein casse… Mais la police arrive…

Coding in the sandbox You must be logged in to access the sandbox.

Mission

La police est en chemin mais le braquage n’est pas terminé… Les braqueurs arriveront-ils à sortir de la banque à temps ?

Règles

Pour finir le casse, les braqueurs doivent réaliser une série d’actions. Chaque action à réaliser est représentée par une lettre :

  • Break => Casser le coffre
  • IT => Piratage informatique
  • Money => Mettre l’argent dans les sacs
  • Prepare => Prépare la sortie

Chacune de ces actions prend du temps. Les temps correspondant sont renseignés dans references.

La police est en chemin et elle arrivera au bout du temps indiqué dans time.

Tu dois retourner l’information comme quoi les braqueurs ont réussi à s’échapper : « ESCAPE » ou se sont fait arrêter : « PRISON ». En plus tu dois indiquer le temps qu’ils avaient en trop ou dont ils manquaient.

Exemple de retour possible :

  • PRISON33
  • ESCAPE45
  • PRISON7
  • ESCAPE8

Précision : on peut retourner ESCAPE0, mais on ne peut pas retourner PRISON0.

Solve the challenge

To code this challenge, several possibilities:
- Want to start coding right away? Use the online Sandbox.
- Want to work in your favorite editor? Organize your code well, test, check out our API documentation.
- You can also copy/paste a dataset below.

challenge code for resolution via API: BANK_1

Some resources to help you:
Data and algorithmic logic Methodologies Corrections

Support for resolution

Progress through challenges using our resolution aids: tools, techniques and advice to help you overcome the most complex programming challenges with methodology, confidence and creativity.

Dataset and algorithmic logic

Based on the data and the expected response, use the process to determine the logic to implement.

Show data and progress

Methodologies

Develop a structured approach with our solving guides. Work on specific concepts such as object-oriented programming or unit testing to improve your coding style and progress.

No methodology yet for this challenge, but we are working on it! Follow us to be informed of the release!


Corrections

The corrections allow you to discover certain technical concepts but will also give you a solution to the challenge. Code the challenge yourself before consulting the corrections ;)

No answer yet for this challenge, but we&'re working on it! Follow us to be informed of the release!

Programming concept(s) that can be used to solve this challenge: Conditions, Fonctions, Parsing

Keep coding

Other challenges to complete

Intermediate
Dépouillement des bulletins de vote

Dépouillement des bulletins de vote

Participe au dépouillement de l’élection en aidant à trier les bulletins.

Calculation
Beginner
Le Sac de l’Aventurier #1

Le Sac de l’Aventurier #1

Aide notre aventurier à remplir son sac avant de partir à l’aventure !

Calculation Corrigé disponible : Python
Intermediate
YOLO les Pizzaïolos

YOLO les Pizzaïolos

Avertissement : ce challenge peut donner faim, il y est question de pizzas et de pizzaiolos un peu particuliers…

Calculation Corrigé disponible : PHP