39562023-03-06 15:38:30kdbRadar (70 pont)cpp17Wrong answer 65/7028ms3676 KiB
#include <iostream>
using namespace std;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    
    int n, m;
    cin >> n >> m;
    int mini = 100001, minh = 0, maxi = 0, maxh = 0;
    for(int i = 0;i<n;i++)
    {
        int a;
        cin >> a;
        if (mini > a)
        {
            mini = a;
            minh = i + 1;
        }
    }
    for (int i = 0; i < m; i++)
    {
        int a;
        cin >> a;
        if (maxi < a)
        {
            maxi = a;
            maxh = i + 1;
        }
    }
    if (mini < maxi)
    {
        cout << "NEM\n" << minh << "\n" << maxh << "\n";
    }
    else
    {
        cout << "IGEN\n";
    }
}
/*
7
5
6
4
9
6
2
10
100
3
2
1
4
3

*/
SubtaskSumTestVerdictTimeMemory
base65/70
1Accepted0/03ms1892 KiB
2Accepted0/03ms2092 KiB
3Accepted5/53ms2316 KiB
4Accepted5/52ms2520 KiB
5Accepted5/53ms2716 KiB
6Accepted5/53ms2928 KiB
7Accepted5/52ms3036 KiB
8Accepted5/53ms3148 KiB
9Accepted5/53ms3232 KiB
10Accepted5/516ms3232 KiB
11Wrong answer0/516ms3356 KiB
12Accepted5/516ms3440 KiB
13Accepted5/517ms3468 KiB
14Accepted5/528ms3540 KiB
15Accepted5/528ms3540 KiB
16Accepted5/528ms3676 KiB