75652024-01-09 17:33:30AblablablaRadar (70 pont)cpp17Accepted 70/7090ms3692 KiB
#include <iostream>

using namespace std;

int main()
{
    int n, m;
    cin >> n >> m;

    int mini = 2e9 + 7, minInd = 0;
    for(int i = 0; i < n; i++){
        int a;
        cin >> a;

        if(mini > a){
            mini = a;
            minInd = i;
        }
    }

    int maxi = 0, maxInd = 0;
    for(int i = 0; i < m; i++){
        int a;
        cin >> a;

        if(maxi < a){
            maxi = a;
            maxInd = i;
        }
    }

    if(mini > maxi){
        cout << "IGEN\n";
    } else{
        cout << "NEM\n";
        cout << minInd + 1 << "\n";
        cout << maxInd + 1 << "\n";
    }
}
SubtaskSumTestVerdictTimeMemory
base70/70
1Accepted0/03ms1912 KiB
2Accepted0/03ms2076 KiB
3Accepted5/53ms2288 KiB
4Accepted5/53ms2508 KiB
5Accepted5/53ms2740 KiB
6Accepted5/53ms2988 KiB
7Accepted5/53ms2980 KiB
8Accepted5/53ms3092 KiB
9Accepted5/53ms3184 KiB
10Accepted5/535ms3320 KiB
11Accepted5/535ms3344 KiB
12Accepted5/550ms3372 KiB
13Accepted5/550ms3448 KiB
14Accepted5/589ms3568 KiB
15Accepted5/590ms3692 KiB
16Accepted5/589ms3688 KiB