Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <algorithm>
- using namespace std;
- int main() {
- int N;
- long long total = 0;
- cin >> N;
- for(int i = 1;i<=N;i++){
- int x;
- cin >> x;
- total += x;
- }
- if(total%2 == 1){
- cout << "DA";
- }else{
- cout << "NE";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment