117272024-11-08 12:21:03balintAranycipők (45)python3Accepted 45/4517ms3320 KiB
def main():
    nums = [int(input()) for _ in range(int(input()))]
    maxi = max(nums)
    poses = []
    for i, x in enumerate(nums):
        if x == maxi:
            poses.append(str(i + 1))
    print(maxi)
    print(len(poses))
    print("\n".join(poses))

main()
SubtaskSumTestVerdictTimeMemory
base45/45
1Accepted0/016ms3128 KiB
2Accepted0/017ms3128 KiB
3Accepted3/316ms3316 KiB
4Accepted3/316ms3120 KiB
5Accepted3/317ms2880 KiB
6Accepted3/316ms3320 KiB
7Accepted3/316ms2872 KiB
8Accepted3/316ms3116 KiB
9Accepted3/316ms3244 KiB
10Accepted3/317ms2920 KiB
11Accepted3/317ms2996 KiB
12Accepted3/316ms3100 KiB
13Accepted3/317ms3116 KiB
14Accepted3/317ms3136 KiB
15Accepted3/317ms3128 KiB
16Accepted3/317ms2964 KiB
17Accepted3/316ms2972 KiB