COROANA TE ROG!!!
14
#include<iostream>
using namespace std;
int main(){
int n, v[101], impar;
cin>>n;
for(int i=1;i<=n;i++) {cin>>v[i]; if (v[i]%2==1) impar=i;}
cout<<i;
}
15
#include<iostream>
using namespace std;
int main(){
int n, v[101], par;
cin>>n>>p;
for(int i=1;i<=n;i++) {cin>>v[i]; if (v[i]%2==0&&p!=0) {par=v[i]; p--;}}
cout<<par;
}
16
#include<iostream>
using namespace std;
int main(){
int n, v[101], sem=1;
cin>>n;
for(int i=1;i<=n;i++) {cin>>v[i]; if (v[i]%2==0||v[i]<15) sem=0;}
(sem==0)?cout<<"NU":cout<<"DA";
}
TOATE INTR-O SINGURA PROBLEMA AR VENI ASA
#include<iostream>
using namespace std;
int main(){
int n, v[101], impar, par, p, sem=1;
cin>>n>>p;
for(int i=1;i<=n;i++) {cin>>v[i]; if (v[i]%2==1) impar=i;
if (v[i]%2==0&&p!=0) {par=v[i]; p--;}
if (v[i]%2==0||v[i]<15) sem=0;
}
cout<<i<<' '<<par<<' '<<(sem==0)?cout<<"NU":cout<<"DA";
}