70142023-12-26 21:21:49xxxRadar (70 pont)cpp11Accepted 70/7032ms6748 KiB
#include <bits/stdc++.h>
using namespace std;
#define int long long

signed main() {
    ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
    int t = 1;
    //cin >> t;
    while(t--) {
        int n, m;
        cin >> n >> m;
        vector<int> a(n), b(m);
        int amin = INT_MAX, aminind;
        for(int i = 0; i < n; i++) {
            cin >> a[i];
            if (amin > a[i]) {
                amin = a[i];
                aminind = i;
            }
        }

        for(int i = 0; i < m; i++) {
            cin >> b[i];
        }

        for(int i = 0; i < m; i++) {
            if (b[i] >= amin) {
                cout << "NEM\n";
                cout << aminind+1 << '\n' << i+1 << '\n';
                return 0;
            }
        }

        cout << "IGEN\n";


    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base70/70
1Accepted0/03ms1976 KiB
2Accepted0/03ms2032 KiB
3Accepted5/53ms2516 KiB
4Accepted5/53ms2680 KiB
5Accepted5/53ms2896 KiB
6Accepted5/53ms3060 KiB
7Accepted5/53ms2948 KiB
8Accepted5/53ms3196 KiB
9Accepted5/53ms3320 KiB
10Accepted5/517ms6400 KiB
11Accepted5/517ms6588 KiB
12Accepted5/518ms5248 KiB
13Accepted5/517ms5276 KiB
14Accepted5/530ms6448 KiB
15Accepted5/532ms6748 KiB
16Accepted5/532ms6660 KiB