1 solutions

  • 0
    @ 2025-7-20 10:14:57

    #include<bits/stdc++.h> using namespace std;

    int main(){ int n,a,b=0,c=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a; if(a%2==0){ b=b+1; } else{ c=c+1; } } cout<<c<<" "<<b; return 0; }

    • 1

    Information

    ID
    210
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    10
    Tags
    # Submissions
    2
    Accepted
    2
    Uploaded By