Problema:
#include <iostream>
using namespace std;
int nr, n, ok = 0;
int main()
{
cin >> n;
for (int i=1; i<=n; i++)
{
cin >> nr;
if (nr % 2 == 1)
{
ok = 1;
}
}
if (ok != 1)
{
cout << "DA";
}
else
{
cout<< "NU";
}
return 0;
}
Comments