1 solutions

  • 0
    @ 2025-12-3 11:01:44

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int a,b;
    int main()
    {
    	cin>>a>>b;
        if(a%2==0&&b%2==0) cout<<"yes";
        else{
        	if(a%2==1&&b%2==1) cout<<"yes";
        	else{
        		cout<<"no";
        	}
        }
    }
    
    • 1

    Information

    ID
    792
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    5
    Tags
    (None)
    # Submissions
    23
    Accepted
    13
    Uploaded By