41102023-03-14 21:46:39kristofAranycipők (45)python3Accepted 45/4518ms13432 KiB
n = int(input())

maximum = 0
ballonDor = []


for i in range(n):
    temp = int(input())

    if temp == maximum:
        ballonDor.append(i)

    if temp > maximum:
        ballonDor.clear()
        maximum = temp
        ballonDor.append(i)


print(maximum)
print(len(ballonDor))
for i in ballonDor:
    print(i+1)
SubtaskSumTestVerdictTimeMemory
base45/45
1Accepted0/017ms10804 KiB
2Accepted0/018ms11328 KiB
3Accepted3/317ms11176 KiB
4Accepted3/317ms11328 KiB
5Accepted3/317ms11560 KiB
6Accepted3/317ms11812 KiB
7Accepted3/317ms12032 KiB
8Accepted3/317ms12100 KiB
9Accepted3/317ms11964 KiB
10Accepted3/318ms12248 KiB
11Accepted3/318ms12216 KiB
12Accepted3/317ms12444 KiB
13Accepted3/317ms13020 KiB
14Accepted3/318ms13060 KiB
15Accepted3/318ms13328 KiB
16Accepted3/317ms13396 KiB
17Accepted3/318ms13432 KiB