129462025-01-03 19:57:57herczegkatRadar (70 pont)python3Accepted 70/70287ms11096 KiB
n=int(input())
m=int(input())
A=[]; B=[]; E=True
for i in range(n):
    A.append(int(input()))
for i in range(m):
    B.append(int(input()))
HminErt=min(A); HminHely=A.index(min(A))+1
EmaxErt=max(B);EmaxHely=B.index(max(B))+1
if HminErt>EmaxErt: print('IGEN')
else:
    print('NEM')
    print(HminHely)
    print(EmaxHely)

'''
7
5
6
4
9
6
2
10
100
3
2
1
4
3
'''
SubtaskSumTestVerdictTimeMemory
base70/70
1Accepted0/016ms3116 KiB
2Accepted0/016ms3124 KiB
3Accepted5/516ms3128 KiB
4Accepted5/516ms3320 KiB
5Accepted5/516ms3004 KiB
6Accepted5/516ms3312 KiB
7Accepted5/516ms3132 KiB
8Accepted5/517ms3128 KiB
9Accepted5/517ms3188 KiB
10Accepted5/5261ms4584 KiB
11Accepted5/5263ms4720 KiB
12Accepted5/5160ms7404 KiB
13Accepted5/5165ms7356 KiB
14Accepted5/5275ms10908 KiB
15Accepted5/5279ms10956 KiB
16Accepted5/5287ms11096 KiB