suppression ancien fichier cours Pile & File, et ajout des sujets bacs NSI
This commit is contained in:
BIN
Sujet_bac/Pratique/BNS_2025/25-NSI-48/25-NSI-48.pdf
Normal file
BIN
Sujet_bac/Pratique/BNS_2025/25-NSI-48/25-NSI-48.pdf
Normal file
Binary file not shown.
17
Sujet_bac/Pratique/BNS_2025/25-NSI-48/25-NSI-48.py
Normal file
17
Sujet_bac/Pratique/BNS_2025/25-NSI-48/25-NSI-48.py
Normal file
@@ -0,0 +1,17 @@
|
||||
def distance_carre(point1, point2):
|
||||
""" Calcule et renvoie la distance au carre entre
|
||||
deux points."""
|
||||
return (...)**2 + (...)**2
|
||||
|
||||
def point_le_plus_proche(depart, tab):
|
||||
""" Renvoie les coordonnées du premier point du tableau tab se
|
||||
trouvant à la plus courte distance du point depart."""
|
||||
min_point = tab[0]
|
||||
min_dist = ...
|
||||
for i in range(1, len(tab)):
|
||||
if distance_carre(tab[i], depart) < ...:
|
||||
min_point = ...
|
||||
min_dist = ...
|
||||
return min_point
|
||||
|
||||
|
||||
Reference in New Issue
Block a user