229512026-01-16 09:29:56KrisaRadar (70 pont)cpp17Wrong answer 0/7089ms1268 KiB
#include <iostream>
#include<vector>
using namespace std;

int main()
{
      int el;
    int saj;
    cin >> saj;
    cin >> el;
vector<int>sajat(saj);
vector<int>ellenfel(el);

int inda,indb;


for (int i=0; i<saj;i++){
    cin >> sajat[i];
}
for (int i=0; i<el;i++){
    cin >> ellenfel[i];
}

int k=sajat[0],n=0;
for (int i=0;i<saj;i++){
    if(sajat[i]<k){
        k=sajat[i];
        inda=i;
    }
}
 for (int i=0;i<el;i++){
    if (ellenfel[i]>n){
        n=ellenfel[i];
        indb=i;
    }
 }

if (k<=n){
    cout << "Nem"<<endl;
    cout << inda+1 <<" ";
cout << indb+1 <<endl;
} else if (k>n){
    cout << "Igen";
}


    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/70
1Wrong answer0/01ms508 KiB
2Wrong answer0/01ms316 KiB
3Wrong answer0/51ms316 KiB
4Wrong answer0/51ms316 KiB
5Wrong answer0/51ms316 KiB
6Wrong answer0/51ms316 KiB
7Wrong answer0/51ms316 KiB
8Wrong answer0/51ms316 KiB
9Wrong answer0/51ms560 KiB
10Wrong answer0/534ms1196 KiB
11Wrong answer0/535ms1196 KiB
12Wrong answer0/550ms840 KiB
13Wrong answer0/548ms832 KiB
14Wrong answer0/589ms1192 KiB
15Wrong answer0/587ms1268 KiB
16Wrong answer0/587ms1192 KiB