1 solutions

  • 0
    @ 2026-10-14 19:25:10
    #include<bits/stdc++.h>
    using namespace std;
    typedef long long ll;
    
    
    int main()
    {
        ll a,b,c=0,d=0;
    cin>>a;
    while (a--)
    {cin>>b;
      if(b%2==0)c++;
     else d++;
    }
        cout<<d<<" "<<c;
    
        return 0;
    }
    
    • 1

    Information

    ID
    296
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    58
    Accepted
    23
    Uploaded By