41532023-03-15 15:32:11KristófRadar (70 pont)cpp11Accepted 70/7090ms5640 KiB
#include <iostream>
#include <climits>

using namespace std;

int main()
{
    int n;
    int m;
    cin>>n;
    cin>>m;
    int s[n];
    int e[m];
    int min=INT_MAX;
    int inde;
    for(int i=0;i<n;i++){
        cin>>s[i];
        if(s[i]<min){
                min=s[i];
                inde=i+1;
        }
    }
    int max=0;
    int in;
for(int i=0;i<m;i++){
    cin>>e[i];
    if(e[i]>max){
        in=i+1;
        max=e[i];
    }
}
  if(max>min || max==min){
    cout<<"NEM"<<endl;
    cout<<inde<<endl;
    cout<<in<<endl;
  }
  else
    cout<<"IGEN";
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base70/70
1Accepted0/03ms1872 KiB
2Accepted0/03ms2128 KiB
3Accepted5/53ms2364 KiB
4Accepted5/53ms2544 KiB
5Accepted5/52ms2604 KiB
6Accepted5/53ms2804 KiB
7Accepted5/53ms3020 KiB
8Accepted5/53ms3100 KiB
9Accepted5/53ms3344 KiB
10Accepted5/537ms5100 KiB
11Accepted5/537ms5092 KiB
12Accepted5/550ms4356 KiB
13Accepted5/550ms4504 KiB
14Accepted5/590ms5324 KiB
15Accepted5/590ms5408 KiB
16Accepted5/590ms5640 KiB