74642024-01-09 09:47:04NotYouAranycipők (45)csharpWrong answer 34/4530ms22956 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/028ms20456 KiB
2Wrong answer0/028ms21288 KiB
3Accepted3/328ms21316 KiB
4Partially correct2/328ms21384 KiB
5Accepted3/328ms21440 KiB
6Partially correct2/328ms21720 KiB
7Partially correct2/328ms21748 KiB
8Accepted3/328ms22024 KiB
9Accepted3/328ms22368 KiB
10Partially correct2/328ms22632 KiB
11Partially correct2/328ms22524 KiB
12Partially correct2/328ms22408 KiB
13Partially correct2/328ms22956 KiB
14Partially correct2/328ms22612 KiB
15Partially correct2/328ms22796 KiB
16Partially correct2/328ms22764 KiB
17Partially correct2/330ms22716 KiB