121742024-12-06 15:22:03lordcasinoiiiKéséspython3Time limit exceeded 16/50601ms25776 KiB
def main():
    n = int(input())
    l = [int(i) for i in input().split()]

    x = True
    i = 0
    while x:
        if l[i:].count(l[i]) > 1:
            i+=1
        elif l[i:].count(l[i]) == 1:
            x = False

    print(i+1)

main()
SubtaskSumTestVerdictTimeMemory
base16/50
1Accepted0/017ms3084 KiB
2Accepted0/026ms5512 KiB
3Accepted5/516ms3128 KiB
4Accepted5/520ms3236 KiB
5Time limit exceeded0/5578ms23992 KiB
6Time limit exceeded0/5578ms23988 KiB
7Accepted4/4100ms25064 KiB
8Time limit exceeded0/4601ms24964 KiB
9Time limit exceeded0/4587ms25064 KiB
10Time limit exceeded0/4586ms25060 KiB
11Time limit exceeded0/4586ms25060 KiB
12Accepted2/2134ms25584 KiB
13Time limit exceeded0/2583ms25500 KiB
14Time limit exceeded0/1601ms25580 KiB
15Time limit exceeded0/1584ms25520 KiB
16Time limit exceeded0/1586ms25512 KiB
17Time limit exceeded0/1586ms25532 KiB
18Time limit exceeded0/1601ms25516 KiB
19Time limit exceeded0/1583ms25776 KiB