| 19178 | 2025-11-28 14:00:09 | MagyarKendeSZLG | Virágos rét (50 pont) | csharp | Forditási hiba |
internal class Program
{
private static void Main(string[] args)
{
int k = int.Parse(Console.ReadLine().Split(' ')[1]);
string[] input = Console.ReadLine().Split(' ');
int count = 0;
for (int i = 0; i < input.Length; i++) if (input[i] == "1") count++;
int res = 0;
for (int i = k; i <= count; i++) res += count - i + 1;
Console.WriteLine(res);
}
}open /var/local/lib/isolate/425/box/main.exe: no such file or directory
main.cs(5,27): error CS0103: The name `Console' does not exist in the current context
main.cs(7,26): error CS0103: The name `Console' does not exist in the current context
main.cs(14,9): error CS0103: The name `Console' does not exist in the current context
Compilation failed: 3 error(s), 0 warnings