135952025-01-08 10:56:34MezeiDavidRadar (70 pont)cpp17Accepted 70/7094ms572 KiB
#include <iostream>

using namespace std;

int main()
{
    int  n,m,max=0,min=1000000001, bekeres, mins, maxs;
    cin >>n>>m;
    for(int i=0; i<n; i++){
        cin >> bekeres;
        if(bekeres <min){
            min = bekeres;
            mins = i;
        }
    }
    for(int i=0; i<m; i++){
        cin >> bekeres;
        if(bekeres>max){
            max = bekeres;
            maxs = i;
        }
    }
    if(min <= max){
        cout << "NEM \n"<< mins+1 << endl<< maxs+1;
    }else
    cout << "IGEN";
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base70/70
1Accepted0/01ms316 KiB
2Accepted0/01ms508 KiB
3Accepted5/51ms316 KiB
4Accepted5/51ms316 KiB
5Accepted5/51ms316 KiB
6Accepted5/51ms376 KiB
7Accepted5/51ms572 KiB
8Accepted5/51ms316 KiB
9Accepted5/51ms316 KiB
10Accepted5/535ms396 KiB
11Accepted5/535ms396 KiB
12Accepted5/552ms396 KiB
13Accepted5/552ms400 KiB
14Accepted5/593ms508 KiB
15Accepted5/593ms316 KiB
16Accepted5/594ms396 KiB