Josif_tepe

Untitled

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