74412024-01-09 08:42:36TortelliniJrAranycipők (45)csharpRuntime error 36/4532ms23392 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];
            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
base36/45
1Accepted0/027ms20256 KiB
2Accepted0/026ms20792 KiB
3Runtime error0/328ms20520 KiB
4Runtime error0/328ms20544 KiB
5Accepted3/326ms21740 KiB
6Accepted3/326ms21988 KiB
7Accepted3/326ms22192 KiB
8Accepted3/326ms22668 KiB
9Accepted3/326ms23136 KiB
10Runtime error0/332ms22516 KiB
11Accepted3/327ms22884 KiB
12Accepted3/326ms22792 KiB
13Accepted3/328ms22864 KiB
14Accepted3/328ms22960 KiB
15Accepted3/328ms23092 KiB
16Accepted3/327ms22880 KiB
17Accepted3/328ms23392 KiB