crsandu icon

Untitled

crsandu | PRO | 01/03/16 02:33:45 PM UTC | 0 ⭐ | 290 👁️ | Never ⏰ | []
C++ |

350 B

|

None

|

0 👍

/

0 👎

Problema: http://www.pbinfo.ro/?pagina=probleme&id=289
 
#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