157272025-02-24 21:13:10MangoRadar (70 pont)python3Runtime error 0/7017ms3128 KiB
sajat = input()
ellenseg = input()
sajat = int(sajat)
ellenseg = int(ellenseg)
sajatsz = input()
ellensegsz = input()
sajatsz = sajatsz.split()
ellensegsz = ellensegsz.split()
sajatm = 0
ellensegm = 0
sm = 0
em = 0
for i in range(sajat):
    if sajatsz[i] > sajatm:
        sajatm = sajatsz[i]
        sm = i + 1

for f in range(ellenseg):
    if ellensegsz[f] > ellensegm:
        ellensegm = ellensegsz[f]
        em = f + 1

if em > sm:
    print("NEM")
    print(sm)
    print(em)
else:
    print("IGEN")
SubtaskSumTestVerdictTimeMemory
base0/70
1Runtime error0/016ms2992 KiB
2Runtime error0/016ms3124 KiB
3Runtime error0/517ms3124 KiB
4Runtime error0/516ms2952 KiB
5Runtime error0/516ms2952 KiB
6Runtime error0/514ms3080 KiB
7Runtime error0/514ms3128 KiB
8Runtime error0/516ms2908 KiB
9Runtime error0/517ms2916 KiB
10Runtime error0/516ms3124 KiB
11Runtime error0/516ms3120 KiB
12Runtime error0/516ms3012 KiB
13Runtime error0/516ms3120 KiB
14Runtime error0/516ms3084 KiB
15Runtime error0/517ms3076 KiB
16Runtime error0/517ms3116 KiB