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