输入2个1000000以内的正整数a和b,如果a和b的奇偶性相同输出“yes”,否则输出“no”。
输入格式
一行2个正整数:a和b,范围在[1,1000000]。
输出格式
yes或no
输入/输出例子1
输入:
6 10
输出:
yes
样例解释
无
#include<bits/stdc++.h>//万能头
using namespace std;
int n,m,t=0,c=0;
int main()
{
cin>>n>>m;
if((n&0x1)==0) t=1;
else t=2;
if((m&0x1)==0) c=1;
else c=2;
if(t==c) cout<<"yes";
else cout<<"no";
return 0;
}