68942023-12-19 14:53:59999Radar (70 pont)cpp17Accepted 70/7093ms12264 KiB
// Source: https://usaco.guide/general/io

#include <bits/stdc++.h>
using namespace std;

int main() {
	int n,m;cin>>n>>m;
	int minn=INT_MAX,minnind=0,minm=0,minmind;
	for(int i = 0;i<n;i++){
		int a;cin>>a;
		if(minn>a){
			minn=a;
			minnind=i+1;
		}
	}for(int i = 0;i<m;i++){
		int a;cin>>a;
		if(minm<a){
			minm=a;
			minmind=i+1;
		}
	}
	if(minn<=minm){
		cout<<"NEM"<<endl<<minnind<<endl<<minmind;
	}
	else{
		cout<<"IGEN"<<endl;
	}
}
SubtaskSumTestVerdictTimeMemory
base70/70
1Accepted0/03ms1876 KiB
2Accepted0/03ms2116 KiB
3Accepted5/53ms2336 KiB
4Accepted5/53ms2424 KiB
5Accepted5/53ms2552 KiB
6Accepted5/53ms2772 KiB
7Accepted5/53ms2860 KiB
8Accepted5/53ms2860 KiB
9Accepted5/53ms3004 KiB
10Accepted5/537ms3512 KiB
11Accepted5/537ms3896 KiB
12Accepted5/552ms5204 KiB
13Accepted5/552ms6396 KiB
14Accepted5/593ms8248 KiB
15Accepted5/593ms10096 KiB
16Accepted5/593ms12264 KiB