|  | 
|  | 
| back to board | C# неправильный ответ помогите найти ошибку. вроде ответы правильные выдаёт
 
 using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 
 namespace ConsoleApp3
 {
 class Program
 {
 static void Main(string[] args)
 {
 string[] a = Console.ReadLine().Split();
 int b = Convert.ToInt32(a[0]);
 int c = Convert.ToInt32(a[1]);
 int d = 0;
 string[] e = Console.ReadLine().Split();
 for (int f = 0; f < c; f++ )
 {
 d = d + Convert.ToInt32(e[f]);
 }
 int g = d - b * c;
 if (g < 0)
 {
 g = 0;
 }
 Console.WriteLine(g);
 Console.ReadLine();
 }
 }
 }
 | 
 | 
|