243452026-02-09 17:48:45BoldizsárRadar (70 pont)cpp17Hibás válasz 45/70600ms508 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int n,k;
    cin >> n;
    int mini = 1e9,maxi = -1,ans1=0,ans2 = 0;
    for(int i = 0;i < n;i++){
        int temp;
        cin >> temp;
        if(mini > temp){
            mini = temp;
            ans1 = i+1;
        }
    }
    cin >> k;
    for(int i = 0;i < k;i++){
        int temp;cin >> temp;
        if(temp > maxi){
            maxi =temp;
            ans2 = i+1;
        }
        }
    if(maxi >= mini){
        cout << "NEM\n"<<ans1<<"\n" << ans2;
    }else cout << "IGEN";
}
RészfeladatÖsszpontTesztVerdiktIdőMemória
base45/70
1Hibás válasz0/01ms316 KiB
2Elfogadva0/01ms316 KiB
3Elfogadva5/51ms316 KiB
4Elfogadva5/51ms316 KiB
5Elfogadva5/51ms316 KiB
6Elfogadva5/51ms316 KiB
7Elfogadva5/51ms316 KiB
8Elfogadva5/51ms508 KiB
9Elfogadva5/51ms316 KiB
10Elfogadva5/517ms400 KiB
11Elfogadva5/517ms400 KiB
12Időlimit túllépés0/5600ms316 KiB
13Időlimit túllépés0/5600ms316 KiB
14Időlimit túllépés0/5600ms316 KiB
15Időlimit túllépés0/5600ms316 KiB
16Időlimit túllépés0/5579ms316 KiB