128822025-01-02 20:46:08herczegkatRadar (70 pont)python3Accepted 70/70254ms10996 KiB
def main():
    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)
main()
'''
7
5
6
4
9
6
2
10
100
3
2
1
4
3
'''
SubtaskSumTestVerdictTimeMemory
base70/70
1Accepted0/016ms3320 KiB
2Accepted0/016ms3316 KiB
3Accepted5/516ms3116 KiB
4Accepted5/516ms3116 KiB
5Accepted5/516ms3000 KiB
6Accepted5/516ms3032 KiB
7Accepted5/516ms2972 KiB
8Accepted5/517ms3164 KiB
9Accepted5/517ms3104 KiB
10Accepted5/5236ms4732 KiB
11Accepted5/5244ms4564 KiB
12Accepted5/5144ms7420 KiB
13Accepted5/5148ms7444 KiB
14Accepted5/5247ms10892 KiB
15Accepted5/5254ms10996 KiB
16Accepted5/5254ms10908 KiB