06. Gold Mine C#. Hе знам защо ми дава 50/100
using System;
public class Program {
public static void Main() {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
double expected = double.Parse(Console.ReadLine());
int days = int.Parse(Console.ReadLine());
double totalGold = 0;
for (int j = 0; j < days; j++) {
double goldPerDay = double.Parse(Console.ReadLine());
totalGold += goldPerDay;
}
double averageGoldPerDay = totalGold / days;
if (averageGoldPerDay >= expected) {
Console.WriteLine($"Good job! Average gold per day: {averageGoldPerDay:F2}.");
} else {
double neededGold = expected * days - totalGold;
Console.WriteLine($"You need {neededGold:F2} gold.");
}
}
}
}