• Напишите программу алгоритма. Задание на фото. Помогите. Задание 1

    question img

Ответы 1

  • \texttt{using System;}\\\texttt{using System.Linq;}\\\\\texttt{nam}\texttt{espace t29800706}\\\{\\\texttt{{ }{ }{ }{ }class Program}\\\texttt{{ }{ }{ }{ }}\{\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }static void Main()}\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }}\{\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }var in}\texttt{put = Console.In.ReadLine()}\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }.Split(' ')}\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }.Select(int.Parse)}\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }.ToArray();}\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }var count = in}\texttt{put.First();}\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }var maxPossibleScore = (double)in}\texttt{put.Last();}\\\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }var scores = Enumerable}\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }.Range(0, count)}\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }.Select(t => Console.In.ReadLine())}\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }.Select(int.Parse)}\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }.Where(t => t >= maxPossibleScore * 0.7 + 0E-11)}\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }.ToList();}\\\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }Console.Out.WriteLine(scores.IndexOf(scores.Max()) + 1);}\\\texttt{{ }{ }{ }{ }{ }{ }{ }{ }}\}\\\texttt{{ }{ }{ }{ }}\}\\\texttt{}\}

    answer img
    • Автор:

      dudeholt
    • 6 лет назад
    • 0
  • Добавить свой ответ

Еще вопросы

Войти через Google

или

Забыли пароль?

У меня нет аккаунта, я хочу Зарегистрироваться

How much to ban the user?
1 hour 1 day 100 years