88492024-02-01 20:20:46körteAranycipők (45)python3Accepted 45/4519ms14128 KiB
N = int(input())
G = []
maximum = 0
nyertes = 0
tarolo = []

for _ in range(N):
    G.append(input())

for i in range(len(G)):
    if int(G[i]) > int(maximum):
        maximum = G[i]
print(maximum)

for i in range(len(G)):
    if (G[i]) == maximum:
        nyertes += 1
        tarolo.append(i+1)

print(nyertes)
for i in range(len(tarolo)):
    print(tarolo[i])
SubtaskSumTestVerdictTimeMemory
base45/45
1Accepted0/017ms11164 KiB
2Accepted0/019ms11744 KiB
3Accepted3/317ms11872 KiB
4Accepted3/317ms12068 KiB
5Accepted3/317ms12100 KiB
6Accepted3/317ms12360 KiB
7Accepted3/317ms12212 KiB
8Accepted3/317ms12424 KiB
9Accepted3/317ms12836 KiB
10Accepted3/319ms13024 KiB
11Accepted3/318ms13000 KiB
12Accepted3/317ms12744 KiB
13Accepted3/318ms13388 KiB
14Accepted3/318ms13456 KiB
15Accepted3/319ms13872 KiB
16Accepted3/319ms13884 KiB
17Accepted3/319ms14128 KiB