31152023-02-16 14:11:54PallanekPéterHús sütés (75 pont)python3Accepted 75/75108ms36304 KiB
n=int(input())
fok=[int(i) for i in input().split()]
fok.sort(reverse=True)
lepes=0
for i in range(n):
    if fok[i]+i>lepes:
        lepes=fok[i]+i
print(lepes)
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/017ms11008 KiB
2Accepted0/017ms11032 KiB
3Accepted0/057ms23152 KiB
4Accepted3/317ms11452 KiB
5Accepted3/317ms11812 KiB
6Accepted3/317ms12036 KiB
7Accepted3/317ms12276 KiB
8Accepted4/417ms12396 KiB
9Accepted4/417ms12620 KiB
10Accepted4/417ms12572 KiB
11Accepted4/417ms12668 KiB
12Accepted4/417ms12768 KiB
13Accepted4/497ms35800 KiB
14Accepted4/4101ms36168 KiB
15Accepted5/5104ms35912 KiB
16Accepted5/597ms36008 KiB
17Accepted5/5108ms36304 KiB
18Accepted4/4101ms36184 KiB
19Accepted4/498ms36236 KiB
20Accepted4/482ms34720 KiB
21Accepted4/4101ms34480 KiB
22Accepted2/2107ms36148 KiB
23Accepted2/270ms16972 KiB