74432024-01-09 08:44:29TortelliniJrAranycipők (45)csharpAccepted 45/4528ms24240 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Oszthatosag31
{
    class Program
    {
        static void Main(string[] args)
        {
            int jatekossz = int.Parse(Console.ReadLine());
            int[] golok = new int[jatekossz];
            int max = 0;
            int n = 0;
            int g = 0;
            int[] aranyok = new int[jatekossz + 1];
            for (int i = 0; i < jatekossz; i++)
            {
                golok[i] = int.Parse(Console.ReadLine());
                if (golok[i] > max)
                {
                    max = golok[i];
                }
            }
            for (int i = 0; i < jatekossz; i++)
            {
                if (golok[i] == max)
                {
                    n++;
                    aranyok[g] = i + 1;
                    g++;
                }
            }
            Console.WriteLine(max);
            Console.WriteLine(n);
            int f = 0;
            while(aranyok[f] != 0)
            {
                Console.WriteLine(aranyok[f]);
                f++;
            }
            Console.ReadLine();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base45/45
1Accepted0/025ms20328 KiB
2Accepted0/026ms20624 KiB
3Accepted3/325ms20824 KiB
4Accepted3/325ms21444 KiB
5Accepted3/326ms22140 KiB
6Accepted3/325ms22108 KiB
7Accepted3/326ms21820 KiB
8Accepted3/326ms22488 KiB
9Accepted3/326ms23060 KiB
10Accepted3/328ms22660 KiB
11Accepted3/327ms22632 KiB
12Accepted3/327ms23372 KiB
13Accepted3/328ms23700 KiB
14Accepted3/328ms23784 KiB
15Accepted3/328ms24012 KiB
16Accepted3/326ms24240 KiB
17Accepted3/328ms24228 KiB