Josif_tepe

Untitled

May 22nd, 2026
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. int main() {
  7.        
  8.         int N;
  9.         long long total = 0;
  10.         cin >> N;
  11.         for(int i = 1;i<=N;i++){
  12.             int x;
  13.             cin >> x;
  14.             total += x;
  15.            
  16.         }
  17.        
  18.         if(total%2 == 1){
  19.             cout << "DA";
  20.         }else{
  21.             cout << "NE";
  22.         }
  23.        
  24.  
  25.  
  26.  
  27.  
  28.  return 0;
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment