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-32/25-NSI-32.pdf
Normal file
BIN
Sujet_bac/Pratique/BNS_2025/25-NSI-32/25-NSI-32.pdf
Normal file
Binary file not shown.
12
Sujet_bac/Pratique/BNS_2025/25-NSI-32/sujet-32.py
Normal file
12
Sujet_bac/Pratique/BNS_2025/25-NSI-32/sujet-32.py
Normal file
@@ -0,0 +1,12 @@
|
||||
valeurs = [100, 50, 20, 10, 5, 2, 1]
|
||||
|
||||
def rendu_glouton(a_rendre, rang):
|
||||
if a_rendre == 0:
|
||||
return ...
|
||||
v = valeurs[rang]
|
||||
if v <= ...:
|
||||
return ... + rendu_glouton(a_rendre - v, rang)
|
||||
else:
|
||||
return rendu_glouton(a_rendre, ...)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user