Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
335 B
2
Indexable
Never
string solve(int m,vector<string> s)
{
    int n=s.size();
    bool ans=1;    
    for(int i=0;i<n;i++)
    {
        bool b=0;
        for(char c:s[i])
        {
            if((int(c))%2==0)
            {b=1;
            break;
            }
        }
        if(!b)ans=1-ans;
    }
    return ans?"EVEN":"ODD"; 
}