121992024-12-09 00:03:5242Késéspython3Accepted 50/50222ms29220 KiB
input()
T=[*map(int,input().split())]
X=len(set(T))
Y=set()
for i in range(len(T)-1,-1,-1):
 Y.add(T[i])
 if len(Y)==X:
  print(i+1)
  break
SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/016ms2872 KiB
2Accepted0/030ms5844 KiB
3Accepted5/517ms3124 KiB
4Accepted5/517ms3140 KiB
5Accepted5/578ms23992 KiB
6Accepted5/576ms23996 KiB
7Accepted4/4197ms24972 KiB
8Accepted4/4194ms24920 KiB
9Accepted4/4158ms25064 KiB
10Accepted4/4150ms25012 KiB
11Accepted4/4155ms24952 KiB
12Accepted2/2194ms24932 KiB
13Accepted2/2202ms29220 KiB
14Accepted1/1197ms29204 KiB
15Accepted1/1222ms29072 KiB
16Accepted1/1174ms24892 KiB
17Accepted1/1141ms25100 KiB
18Accepted1/1108ms25192 KiB
19Accepted1/1101ms24844 KiB