Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- /* ----------------- ~~~~~~~ ----------------- */
- long long x, d;
- /* ----------------- ~~~~~~~ ----------------- */
- int main(){
- freopen("sn.txt", "r", stdin);
- freopen("kq.txt", "w", stdout);
- ios_base::sync_with_stdio(0); cin.tie(0);
- /* ----------------- main func ----------------- */
- while(cin >> x)
- d += !(x&1);
- cout << d;
- /* ----------------- ~~~~~~~~~ ----------------- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement