135962025-01-08 10:57:29MezeiDavidRadar (70 pont)cpp17Accepted 70/7093ms508 KiB
#include <iostream>
// skibidi alfa sigma rizzler
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/51ms508 KiB
5Accepted5/51ms316 KiB
6Accepted5/51ms332 KiB
7Accepted5/51ms316 KiB
8Accepted5/51ms316 KiB
9Accepted5/51ms316 KiB
10Accepted5/535ms392 KiB
11Accepted5/535ms396 KiB
12Accepted5/552ms396 KiB
13Accepted5/552ms316 KiB
14Accepted5/593ms316 KiB
15Accepted5/593ms396 KiB
16Accepted5/593ms400 KiB