135952025-01-08 10:56:34MezeiDavidRadar (70 pont)cpp17Elfogadva 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;
}
RészfeladatÖsszpontTesztVerdiktIdőMemória
base70/70
1Elfogadva0/01ms316 KiB
2Elfogadva0/01ms508 KiB
3Elfogadva5/51ms316 KiB
4Elfogadva5/51ms316 KiB
5Elfogadva5/51ms316 KiB
6Elfogadva5/51ms376 KiB
7Elfogadva5/51ms572 KiB
8Elfogadva5/51ms316 KiB
9Elfogadva5/51ms316 KiB
10Elfogadva5/535ms396 KiB
11Elfogadva5/535ms396 KiB
12Elfogadva5/552ms396 KiB
13Elfogadva5/552ms400 KiB
14Elfogadva5/593ms508 KiB
15Elfogadva5/593ms316 KiB
16Elfogadva5/594ms396 KiB