Aide Daenerys Targaryen à constituer une armée pour combattre le roi de la nuit…
Le roi de la nuit arrive…
Heureusement, Ser Jorah Mormont est parti en éclaireur et sait exactement combien de troupes l’armée de Daenerys va devoir affronter.
L’information se trouve dans « armee ».
Daenerys va constituer son armée de la façon suivante :
Mais Daenerys veut préserver au maximum ses dragons, puis ses immaculés :
Tu dois retourner la composition de l’armée, sous la forme dragons_immaculés_dothrakis, par exemple : 1_146_2219 (exemple pour une armée ennemie de 5409 troupes).
challenge code for resolution via API: GOT_1
Some resources to help you:
Data and algorithmic logic Methodologies Corrections
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 progressDevelop 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!
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 ;)
Programming concept(s) that can be used to solve this challenge: Conditions, Booléens
Other challenges to complete