suppression ancien fichier cours Pile & File, et ajout des sujets bacs NSI

This commit is contained in:
2026-03-25 21:13:05 +01:00
parent 0a16b5fbb3
commit c6ee9b49f4
167 changed files with 1103 additions and 158 deletions

Binary file not shown.

View File

@@ -0,0 +1,19 @@
def somme_max(tab):
n = len(tab)
sommes_max = [0]*n
sommes_max[0] = tab[0]
# on calcule la plus grande somme se terminant en i
for i in range(1,n):
if ... + ... > ...:
sommes_max[i] = ...
else:
sommes_max[i] = ...
# on en déduit la plus grande somme de celles-ci
maximum = 0
for i in range(1, n):
if ... > ...:
maximum = i
return sommes_max[...]