Advertisement
leminhkt

noname54

May 20th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2.  
  3.  
  4. using namespace std;
  5.  
  6.  
  7.     /* ----------------- ~~~~~~~ ----------------- */
  8.    
  9.     long long x, d;
  10.  
  11. /* ----------------- ~~~~~~~ ----------------- */
  12.  
  13. int main(){
  14.    
  15.     freopen("sn.txt", "r", stdin);
  16.     freopen("kq.txt", "w", stdout);
  17.     ios_base::sync_with_stdio(0); cin.tie(0);
  18.  
  19.         /* ----------------- main func ----------------- */
  20.    
  21.     while(cin >> x)
  22.         d += !(x&1);
  23.     cout << d;
  24.  
  25. /* ----------------- ~~~~~~~~~ ----------------- */
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement