using System.Collections.Generic;
public static void Main()
Solution sol = new Solution();
Console.WriteLine("Sortie " + sol.ChargeDIdier(weights, charge));
public int ChargeDIdier(int[] weights, int charge) {
List<int> buf = new List<int>();
weights = weights.OrderByDescending(c => c).ToArray();
for (int poids = 0; poids < weights.Length; poids++)
int amount = charge/weights[poids];
if(charge/weights[poids] != 0){
total = total + (weights[poids]*(charge/weights[poids]));
for (int i = 0; i < amount; i++)
Console.WriteLine("Explications ");
System.Console.Write("{0} ", i);