79572024-01-12 08:45:52250L7Aranycipők (45)csharpAccepted 45/4530ms24400 KiB
using System;
using System.Collections.Generic;

namespace aranycipo
{
	class Program
	{
		static void Main(string[] args)
		{
			int N = Convert.ToInt32(Console.ReadLine());
			int[] jatekos = new int[N];
			List<int> arany = new List<int>();
			int max = 0;
			int K = 0;
			for (int i = 0; i < N; i++)
			{
				jatekos[i] = Convert.ToInt32(Console.ReadLine());
				if (jatekos[i] > max)
				{
					max = jatekos[i];
				}
			}
			for (int i = 0; i < N; i++)
			{
				if (jatekos[i] == max)
				{
					K++;
					arany.Add(i + 1);
				}
			}
			Console.WriteLine(max);
			Console.WriteLine(K);
			for (int i = 0; i < K; i++)
			{
				Console.WriteLine(arany[i]);
			}

			Console.ReadKey();
		}
	}
}
SubtaskSumTestVerdictTimeMemory
base45/45
1Accepted0/027ms20948 KiB
2Accepted0/027ms21016 KiB
3Accepted3/327ms21452 KiB
4Accepted3/327ms21828 KiB
5Accepted3/327ms22160 KiB
6Accepted3/327ms22152 KiB
7Accepted3/326ms22464 KiB
8Accepted3/327ms22928 KiB
9Accepted3/327ms22996 KiB
10Accepted3/330ms23668 KiB
11Accepted3/328ms23500 KiB
12Accepted3/327ms23588 KiB
13Accepted3/328ms24120 KiB
14Accepted3/328ms24332 KiB
15Accepted3/329ms24400 KiB
16Accepted3/328ms24012 KiB
17Accepted3/329ms24168 KiB