74632024-01-09 09:46:26NotYouAranycipők (45)csharpWrong answer 34/4529ms24072 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace arany_cipok
{
    class Program
    {
        static void Main(string[] args)
        {
            int j = int.Parse(Console.ReadLine());
            int[] g = new int[j];
            int lg = 0;
            int a = 0;
            int[] s = new int[j];
            List<int> l = new List<int>();

            for (int i = 0; i < j; i++)
            {
                g[i] = int.Parse(Console.ReadLine());
                if (g[i]>lg)
                {
                    lg = g[i];
                }
            }

            for (int i = 0; i < j; i++)
            {
                if (lg == g[i])
                {
                    a++;
                    l.Add(i + 1);
                }
            }
            Console.WriteLine(lg);
            Console.WriteLine(a);
            Console.WriteLine(string.Join("\r\n", l));
            Console.ReadLine();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base34/45
1Wrong answer0/028ms20664 KiB
2Wrong answer0/028ms21392 KiB
3Accepted3/328ms21132 KiB
4Partially correct2/328ms21544 KiB
5Accepted3/328ms21756 KiB
6Partially correct2/328ms22124 KiB
7Partially correct2/328ms22356 KiB
8Accepted3/328ms22628 KiB
9Accepted3/328ms23120 KiB
10Partially correct2/329ms23008 KiB
11Partially correct2/328ms23480 KiB
12Partially correct2/329ms23612 KiB
13Partially correct2/329ms23808 KiB
14Partially correct2/329ms23364 KiB
15Partially correct2/328ms24040 KiB
16Partially correct2/328ms23820 KiB
17Partially correct2/328ms24072 KiB