7262021-12-21 13:58:09kismartongKéséspython3Time limit exceeded 16/50592ms68512 KiB
from sys import stdin, stdout

def main():
    n = int(stdin.readline())
    sz = list(map(int, stdin.readline().split()))
    k = 1
    for i in range(n):
        if sz[i:].count(sz[i]) > 1:
            k += 1
        else:
            break
    stdout.writelines(str(k))

main()
SubtaskSumTestVerdictTimeMemory
base16/50
1Accepted0/035ms13084 KiB
2Accepted0/048ms17784 KiB
3Accepted5/527ms13384 KiB
4Accepted5/535ms13468 KiB
5Time limit exceeded0/5561ms26308 KiB
6Time limit exceeded0/5569ms27568 KiB
7Accepted4/4105ms60356 KiB
8Time limit exceeded0/4592ms31020 KiB
9Time limit exceeded0/4578ms32344 KiB
10Time limit exceeded0/4544ms33488 KiB
11Time limit exceeded0/4560ms34816 KiB
12Accepted2/2145ms68512 KiB
13Time limit exceeded0/2509ms39268 KiB
14Time limit exceeded0/1509ms41216 KiB
15Time limit exceeded0/1547ms43172 KiB
16Time limit exceeded0/1507ms45184 KiB
17Time limit exceeded0/1515ms47196 KiB
18Time limit exceeded0/1503ms49060 KiB
19Time limit exceeded0/1504ms50996 KiB