Comprends et programme le système de notation d’une épreuve de tir au pistolet
Les jeux olympiques ont commencé ! Au programme aujourd’hui, du tir au pistolet ! Tu es chargé.e de développer le programme qui permettra de produire la note finale de chaque participant.e.
Voyons voir un peu comment tout cela est calculé…
Lors de chaque tir, un système de mesure ultra sophistiqué te renvoie la distance du tir par rapport au centre, en mm.

Voici ensuite le tableau qui regroupe les positions et dimensions des différents cercles de la cible :
| Diamètre | Rayon (= distance par rapport au centre) | Points |
| 11,5mm | 5,75mm | 10 |
| 27,5mm | 13,75mm | 9 |
| 43,5mm | 21,75mm | 8 |
| 59,5mm | 29,75mm | 7 |
| 75,5mm | 37,75mm | 6 |
| 91,5mm | 45,75mm | 5 |
Tu dois retourner le score total après l’ensemble des tirs contenus dans shots.
challenge code for resolution via API: OLYMPIC_5
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 ;)
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, Tableaux, Calculs
Other challenges to complete