La mêlée, ce temps fort d’un match de rugby ! Calcule la puissance de l’impact !
La coupe du monde de rugby a démarré ! L’occasion pour nous de te proposer des challenges spécial Rugby ! Au programme d’aujourd’hui, la mêlée !
Une mêlée est composée de 8 joueurs, répartis sur 3 lignes :
Tu vas devoir calculer la puissance de la mêlée à l’impact !
Les joueurs sont répartis dans 3 tableaux line1, line2 et line3.
Chaque joueur est défini par son poids et sa force, ce sont deux entiers, séparés par « : ».
L’impact de chaque joueur est égal à son poids multiplié par sa force.
Mais…
Pour les calculs, l’impact de chaque joueur doit être arrondi à l’entier inférieur, après application du coefficient.
Tu dois retourner l’impact total de la mêlée, c’est à dire la somme des impacts de chaque joueur.
challenge code for resolution via API: RUGBY_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: Tableaux
Other challenges to complete