78192024-01-11 11:52:28TortelliniJrKéséscsharpWrong answer 0/50591ms65244 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace kesesigazi
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            int[] ev = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int g = 0;
            for (int i = 0; i < n; i++)
            {
                if (Array.FindIndex(ev, x => x.Equals(ev[i])) == Array.FindLastIndex(ev, x => x.Equals(ev[i])))
                {
                    g = i - 1;
                    break;
                }
            }
            Console.WriteLine(g);
            Console.ReadLine();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Accepted0/032ms21632 KiB
2Wrong answer0/046ms26108 KiB
3Wrong answer0/537ms23684 KiB
4Wrong answer0/537ms24032 KiB
5Time limit exceeded0/5580ms24148 KiB
6Time limit exceeded0/5555ms24200 KiB
7Wrong answer0/4155ms58744 KiB
8Time limit exceeded0/4560ms23984 KiB
9Time limit exceeded0/4566ms23984 KiB
10Time limit exceeded0/4532ms24424 KiB
11Time limit exceeded0/4563ms24560 KiB
12Wrong answer0/2173ms65244 KiB
13Wrong answer0/2451ms64768 KiB
14Time limit exceeded0/1546ms27720 KiB
15Time limit exceeded0/1579ms28028 KiB
16Time limit exceeded0/1572ms28348 KiB
17Time limit exceeded0/1591ms31988 KiB
18Time limit exceeded0/1577ms31932 KiB
19Time limit exceeded0/1574ms32120 KiB