40342023-03-09 13:51:27KristófRadar (70 pont)cpp11Wrong answer 65/7090ms5416 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){
    cout<<"NEM"<<endl;
    cout<<inde<<endl;
    cout<<in<<endl;
  }
  else
    cout<<"IGEN";
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base65/70
1Accepted0/03ms1876 KiB
2Accepted0/03ms2120 KiB
3Accepted5/53ms2480 KiB
4Accepted5/53ms2552 KiB
5Accepted5/53ms2796 KiB
6Accepted5/53ms2972 KiB
7Accepted5/53ms3184 KiB
8Accepted5/53ms3304 KiB
9Accepted5/53ms3272 KiB
10Accepted5/535ms4948 KiB
11Wrong answer0/537ms5156 KiB
12Accepted5/550ms4480 KiB
13Accepted5/550ms4456 KiB
14Accepted5/590ms5192 KiB
15Accepted5/590ms5192 KiB
16Accepted5/590ms5416 KiB