39552023-03-06 15:35:11kdbRadar (70 pont)cpp17Wrong answer 20/7027ms3936 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, maxi = 0;
    for(int i = 0;i<n;i++)
    {
        int a;
        cin >> a;
        mini = min(mini, a);
    }
    for (int i = 0; i < m; i++)
    {
        int a;
        cin >> a;
        maxi = max(maxi, a);
    }
    if (mini < maxi)
    {
        cout << "NEM\n" << mini << "\n" << maxi << "\n";
    }
    else
    {
        cout << "IGEN\n";
    }
}
/*
7
5
6
4
9
6
2
10
100
3
2
1
4
3

*/
SubtaskSumTestVerdictTimeMemory
base20/70
1Accepted0/03ms1892 KiB
2Accepted0/03ms2116 KiB
3Accepted5/52ms2200 KiB
4Wrong answer0/52ms2328 KiB
5Wrong answer0/52ms2504 KiB
6Accepted5/52ms2720 KiB
7Accepted5/52ms2800 KiB
8Wrong answer0/53ms2932 KiB
9Wrong answer0/53ms3144 KiB
10Accepted5/516ms3508 KiB
11Wrong answer0/516ms3584 KiB
12Wrong answer0/516ms3660 KiB
13Wrong answer0/516ms3668 KiB
14Wrong answer0/527ms3808 KiB
15Wrong answer0/527ms3936 KiB
16Wrong answer0/527ms3680 KiB