127842024-12-30 16:03:57WellLeopardUsuallyAranycipők (45)python3Accepted 45/4517ms3320 KiB
n = int(input())
maxVal = 0
maxIndexes = list()
for i in range(1, n+1):
    value = int(input())
    if value > maxVal:
        maxVal = value
        maxIndexes = [i]
        lenMaxIndexes = 1
    elif value == maxVal:
        maxIndexes.append(i)
        lenMaxIndexes += 1
print(maxVal)
print(lenMaxIndexes)
for index in maxIndexes:
    print(index)
SubtaskSumTestVerdictTimeMemory
base45/45
1Accepted0/016ms2872 KiB
2Accepted0/017ms2872 KiB
3Accepted3/316ms2868 KiB
4Accepted3/316ms2936 KiB
5Accepted3/316ms2872 KiB
6Accepted3/316ms3100 KiB
7Accepted3/316ms2872 KiB
8Accepted3/316ms2872 KiB
9Accepted3/317ms3100 KiB
10Accepted3/317ms3108 KiB
11Accepted3/317ms3088 KiB
12Accepted3/316ms2872 KiB
13Accepted3/316ms3132 KiB
14Accepted3/317ms3128 KiB
15Accepted3/317ms3128 KiB
16Accepted3/316ms2944 KiB
17Accepted3/317ms3320 KiB