117282024-11-08 12:39:39balintKéséspython3Accepted 50/50163ms36564 KiB
def main():
    poses = {}
    count = int(input())
    nums = list(map(int, input().split()))
    for i in range(1, count + 1):
        poses[nums[i - 1]] = i
    print(min(poses.values()))


main()
SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/016ms3100 KiB
2Accepted0/026ms5604 KiB
3Accepted5/516ms3128 KiB
4Accepted5/517ms3128 KiB
5Accepted5/597ms24760 KiB
6Accepted5/598ms24808 KiB
7Accepted4/4150ms26080 KiB
8Accepted4/4134ms26204 KiB
9Accepted4/4157ms26196 KiB
10Accepted4/4134ms26236 KiB
11Accepted4/4160ms26108 KiB
12Accepted2/2163ms26792 KiB
13Accepted2/2144ms36564 KiB
14Accepted1/1146ms36540 KiB
15Accepted1/1136ms26852 KiB
16Accepted1/1158ms26812 KiB
17Accepted1/1160ms26932 KiB
18Accepted1/1104ms26796 KiB
19Accepted1/1101ms26784 KiB