79562024-01-12 08:45:36DominikAranycipők (45)csharpAccepted 45/4532ms25676 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace aranycipok
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            int[] golok = new int[n];
            for (int i = 0; i < golok.Length; i++)
            {
                golok[i] = int.Parse(Console.ReadLine());
            }
            int max = golok.Max();
            int x = 0;
            int[] jatekosid = new int[n];
            for (int i = 0; i < golok.Length; i++)
            {
                if (golok[i]==max)
                {
                    jatekosid[x] = i + 1;
                    x++;
                }
            }
            Console.WriteLine(max);
            Console.WriteLine(x);
            for (int i = 0; i < jatekosid.Length; i++)
            {
                if (jatekosid[i]!=0)
                {
                    Console.WriteLine(jatekosid[i]);
                }
            }
            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base45/45
1Accepted0/028ms21272 KiB
2Accepted0/028ms21976 KiB
3Accepted3/328ms22392 KiB
4Accepted3/327ms22544 KiB
5Accepted3/328ms22780 KiB
6Accepted3/328ms23000 KiB
7Accepted3/328ms23380 KiB
8Accepted3/328ms23768 KiB
9Accepted3/328ms24160 KiB
10Accepted3/329ms24072 KiB
11Accepted3/328ms24200 KiB
12Accepted3/329ms24100 KiB
13Accepted3/329ms24424 KiB
14Accepted3/332ms25244 KiB
15Accepted3/329ms25676 KiB
16Accepted3/328ms25368 KiB
17Accepted3/329ms25516 KiB