Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment