74572024-01-09 09:44:20NotYouAranycipők (45)csharpWrong answer 34/4529ms23324 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(" ", l));
            Console.ReadLine();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base34/45
1Wrong answer0/028ms20844 KiB
2Wrong answer0/028ms21300 KiB
3Accepted3/328ms21268 KiB
4Partially correct2/328ms21772 KiB
5Accepted3/328ms22144 KiB
6Partially correct2/328ms22152 KiB
7Partially correct2/328ms22388 KiB
8Accepted3/328ms22512 KiB
9Accepted3/328ms22596 KiB
10Partially correct2/328ms22972 KiB
11Partially correct2/329ms23324 KiB
12Partially correct2/328ms23280 KiB
13Partially correct2/328ms23132 KiB
14Partially correct2/328ms23236 KiB
15Partially correct2/328ms23012 KiB
16Partially correct2/328ms23196 KiB
17Partially correct2/328ms23164 KiB