using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Logistics { class Logistics { static void Main(string[] args) { int loadCount = int.Parse(Console.ReadLine()); int allLoads = 0; double avrPrice = 0; int byMinibus = 0; int byTruck = 0; int byTrain = 0; for (int i = 1; i <= loadCount; i++) { int LoadTonnage = int.Parse(Console.ReadLine()); allLoads += LoadTonnage; if (LoadTonnage < 4) { avrPrice += LoadTonnage * 200; byMinibus += LoadTonnage; } else if (LoadTonnage < 12) { avrPrice += LoadTonnage * 175; byTruck += LoadTonnage; } else { avrPrice += LoadTonnage * 120; byTrain += LoadTonnage; } } double avrPerTon = avrPrice / allLoads; Console.WriteLine($"{avrPerTon:f2}"); Console.WriteLine($"{byMinibus * 100.0 / allLoads:f2}%"); Console.WriteLine($"{byTruck * 100.0 / allLoads:f2}%"); Console.WriteLine($"{byTrain * 100.0 / allLoads:f2}%"); } } }