premiere implementation en python

- il n'y a pas de departage des candidats ayant obtenu la même mention
- aucune certitude que l'algorithme est bien respecté.
This commit is contained in:
philippe lhardy
2025-06-14 12:15:38 +02:00
commit 4a20a70bfa
4 changed files with 284 additions and 0 deletions

77
samples/2.json Normal file
View File

@@ -0,0 +1,77 @@
{
"candidats":{
"A":"albert",
"B":"Beatrice",
"C":"Chloé",
"D":"Deborah",
"E":"Eric",
"F":"Francçois",
"G":"Gisèle",
"H":"Hugo"
},
"votants":{
"decompte":10
},
"mentions":[
"Très Bien",
"Bien",
"Assez Bien",
"Passable",
"Insuffisant",
"A rejeter"
],
"votation":
{
"date":"14 juin 2025",
"lieu":"liffré",
"votes":[
{
"A":1,
"C":2,
"D":3
},
{
"B":1,
"C":2,
"E":3
},
{
"A":1,
"C":2,
"F":3
},
{
"G":1,
"C":2,
"D":3,
},
{
"A":1,
"G":2,
"E":3
},
{
"E":1,
"C":2,
"D":3
},
{
"E":1,
"C":2,
"D":3
},
{
"A":1,
"D":2,
},
{
"A":5,
"C":2,
"D":3
},
{
"A":4,
}
]
}
}