112852024-08-03 21:34:21probaAranycipők (45)python3Accepted 45/4519ms3092 KiB
#góllövő
N = int(input())
gol = []
for i in range(N):
    gol += [int(input())]

a = max(gol)
db = gol.count(a)
g = []

i = 0
while len(g) < db:
    if gol[i] == a:
        g += [str(i+1)]
    i += 1
    
print(a)
print(db)
print('\n'.join(g))

SubtaskSumTestVerdictTimeMemory
base45/45
1Accepted0/018ms2956 KiB
2Accepted0/018ms3044 KiB
3Accepted3/317ms2916 KiB
4Accepted3/317ms2980 KiB
5Accepted3/318ms3088 KiB
6Accepted3/317ms3064 KiB
7Accepted3/317ms2916 KiB
8Accepted3/317ms3076 KiB
9Accepted3/318ms2960 KiB
10Accepted3/318ms2984 KiB
11Accepted3/319ms2916 KiB
12Accepted3/317ms2952 KiB
13Accepted3/318ms3044 KiB
14Accepted3/317ms3044 KiB
15Accepted3/319ms2872 KiB
16Accepted3/318ms3092 KiB
17Accepted3/319ms3044 KiB